Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0.0] NullPointerException in leaseCoordinatorThreadPool when calling shutdown #1395

Closed
jtjeferreira opened this issue Nov 7, 2024 · 1 comment

Comments

@jtjeferreira
Copy link

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

@akidambisrinivasan
Copy link
Contributor

Fix is merged and will be part of next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants