You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test that creates a Scheduler (but does not start it via run), asserts some properties and calls Scheduler.shutdown. This triggers a NPE:
java.lang.NullPointerException: Cannot invoke "java.util.concurrent.ScheduledExecutorService.shutdownNow()" because "this.leaseCoordinatorThreadPool" is null
at software.amazon.kinesis.leases.dynamodb.DynamoDBLeaseCoordinator.stop(DynamoDBLeaseCoordinator.java:386)
at software.amazon.kinesis.coordinator.Scheduler.shutdown(Scheduler.java:1030)
I think the call to leaseCoordinatorThreadPool.shutdownNow() in line 386 is not needed, because the shutdown of that pool already happens a few lines above
The text was updated successfully, but these errors were encountered:
I have a test that creates a
Scheduler
(but does not start it viarun
), asserts some properties and callsScheduler.shutdown
. This triggers a NPE:I think the call to
leaseCoordinatorThreadPool.shutdownNow()
in line 386 is not needed, because the shutdown of that pool already happens a few lines aboveThe text was updated successfully, but these errors were encountered: