Log task reconfiguration error only when it happened
This commit makes `DistributedHerder` log that some error has happened during task reconfiguration only when it actually has happened.
Author: Ivan Yurchenko
Reviewer: Randall Hauch
@@ -1245,10 +1245,12 @@ public class DistributedHerder extends AbstractHerder implements Runnable {
}, new Callback<Void>() {
@Override
public void onCompletion(Throwable error, Void result) {
+ if (error != null) {
log.error("Unexpected error during connector task reconfiguration: ", error);
log.error("Task reconfiguration for {} failed unexpectedly, this connector will not be properly reconfigured unless manually triggered.", connName);
}
}
+ }
);
}
}
