log.debug("Reporting containerStatus=" + status);
}
ContainerId containerId = status.getContainerId();
int exitStatus = status.getExitStatus();
ContainerState state = status.getState();
String cid = ConverterUtils.toString(containerId);
synchronized (lock) {
if (state.equals(ContainerState.COMPLETE)) {
if (exitStatus > 0 || exitStatus == -100 || exitStatus == -101 || exitStatus == -1000) {
failed.add(cid);
} else if (exitStatus != -100) {
// TODO: should do something centrally about exit statuses
// -100 - container released by app