Merge pull request #843 from ashwing/scheduler_error_logging

Better logging for scheduler exceptions
This commit is contained in:
ashwing 2021-07-29 10:42:08 -07:00 committed by GitHub
commit 36ff9dc0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,10 +371,8 @@ public class Scheduler implements Runnable {
leaderElectedPeriodicShardSyncManager.start();
streamSyncWatch.start();
isDone = true;
} catch (LeasingException e) {
log.error("Caught exception when initializing LeaseCoordinator", e);
lastException = e;
} catch (Exception e) {
log.error("Caught exception when initializing LeaseCoordinator", e);
lastException = e;
}