use of com.datatorrent.stram.api.StramEvent.ContainerErrorEvent in project apex-core by apache.
the class StreamingContainerParent method reportError.
@Override
public void reportError(String containerId, int[] operators, String msg, LogFileInformation logFileInfo) throws IOException {
EventGroupId groupId = getGroupIdForNewGroupingRequest(containerId);
if (operators == null || operators.length == 0) {
dagManager.recordEventAsync(new ContainerErrorEvent(containerId, msg, logFileInfo, groupId));
} else {
for (int operator : operators) {
OperatorInfo operatorInfo = dagManager.getOperatorInfo(operator);
if (operatorInfo != null) {
dagManager.recordEventAsync(new OperatorErrorEvent(operatorInfo.name, operator, containerId, msg, logFileInfo, groupId));
}
}
}
log(containerId, msg);
}
Aggregations