Skip to content

Initializes Reservoir reset setting eagerly. - #52

Merged
chrisradek merged 2 commits into
aws:masterfrom
chang-chao:master
Jan 15, 2019
Merged

Initializes Reservoir reset setting eagerly.#52
chrisradek merged 2 commits into
aws:masterfrom
chang-chao:master

Conversation

@chang-chao

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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