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

2.x: fix periodic scheduling with negative period causing IAE #5419

Merged
merged 2 commits into from
Jun 17, 2017

Conversation

akarnokd
Copy link
Member

This PR adds unit tests to verify the Scheduler.schedulePeriodicallyDirect and Scheduler.Worker.schedulePeriodically works with non-positive period as required by the Javadoc.

The computation and single schedulers were not working properly and the underlying ScheduledExecutorService crashed with IllegalArgumentException thus these are now fixed with custom handler for the period <= 0L cases.

Related: #5416.

@akarnokd akarnokd added this to the 2.2 milestone Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants