refactor(worker): broaden exception handling

This commit is contained in:
bencvdb 2021-07-07 08:29:42 -07:00
parent f2dd16257d
commit 52199a24ee

View file

@ -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;
} }