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

Initializes Reservoir reset setting eagerly. #52

Merged
merged 2 commits into from
Jan 15, 2019
Merged

Initializes Reservoir reset setting eagerly. #52

merged 2 commits into from
Jan 15, 2019

Conversation

chang-chao
Copy link
Contributor

As in the javadoc states, System.nanoTime() may return a negative value, the current implementation of Reservoir may initially set the reset time to 0, when this value is compared to System.nanoTime() to determine max traces per decisecond, an IndexOutOfBoundsException may occur in case of a negative nano time value.

This bug is introduced by the this commit.

@chang-chao chang-chao changed the title Initailizes Reservoir reset setting eagerly. Initializes Reservoir reset setting eagerly. Jan 6, 2019
@haotianw465 haotianw465 assigned chrisradek and unassigned chrisradek Jan 14, 2019
@chrisradek
Copy link
Contributor

@chang-chao
Thank you for submitting this bug fix. The change looks good! Had to rerun the CI due to master updating, but will merge assuming the new run passes.

@chang-chao
Copy link
Contributor Author

@chrisradek Thanks.
As all the checks have passed,the merging is blocked because approving review is required by reviewers with write access, so would you please approve it?

@chrisradek
Copy link
Contributor

@chang-chao
Thank you for your contribution! Merging your changes now.

@chrisradek chrisradek merged commit 0ef1114 into aws:master Jan 15, 2019
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

Successfully merging this pull request may close these issues.

3 participants