fix(worker): actually throw the error
This commit is contained in:
parent
a8551d5389
commit
f2dd16257d
1 changed files with 4 additions and 0 deletions
|
|
@ -486,6 +486,10 @@ public class Worker implements Runnable {
|
|||
try {
|
||||
initialize();
|
||||
LOG.info("Initialization complete. Starting worker loop.");
|
||||
} catch (MissingIncompleteLeasesException e1){
|
||||
LOG.error("Unable to initialize because some incomplete leases were missing. Shutting down.", e1);
|
||||
shutdown();
|
||||
throw e1;
|
||||
} catch (RuntimeException e1) {
|
||||
LOG.error("Unable to initialize after " + MAX_INITIALIZATION_ATTEMPTS + " attempts. Shutting down.", e1);
|
||||
shutdown();
|
||||
|
|
|
|||
Loading…
Reference in a new issue