refactor(worker): broaden exception handling
This commit is contained in:
parent
f2dd16257d
commit
52199a24ee
1 changed files with 1 additions and 2 deletions
|
|
@ -619,12 +619,11 @@ public class Worker implements Runnable {
|
||||||
lastException = result.getException();
|
lastException = result.getException();
|
||||||
handleMissingIncompleteLeasesException(lastException);
|
handleMissingIncompleteLeasesException(lastException);
|
||||||
}
|
}
|
||||||
} catch (MissingIncompleteLeasesException e) {
|
|
||||||
throw e;
|
|
||||||
} catch (LeasingException e) {
|
} catch (LeasingException e) {
|
||||||
LOG.error("Caught exception when initializing LeaseCoordinator", e);
|
LOG.error("Caught exception when initializing LeaseCoordinator", e);
|
||||||
lastException = e;
|
lastException = e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
handleMissingIncompleteLeasesException(e);
|
||||||
lastException = e;
|
lastException = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue