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

Use System.nanoTime for ThreadPool's estimated time, since it's less likely to go backwards #11626

Merged
merged 1 commit into from Jun 12, 2015

Conversation

mikemccand
Copy link
Contributor

No description provided.

@mikemccand mikemccand added >enhancement v2.0.0-beta1 :Core/Infra/Core Core issues without another label labels Jun 12, 2015
@mikemccand mikemccand self-assigned this Jun 12, 2015
@s1monw
Copy link
Contributor

s1monw commented Jun 12, 2015

LGTM

mikemccand pushed a commit that referenced this pull request Jun 12, 2015
Use System.nanoTime for ThreadPool's estimated time, since it's less likely to go backwards
@mikemccand mikemccand merged commit 8e85304 into elastic:master Jun 12, 2015
@bleskes
Copy link
Contributor

bleskes commented Jun 17, 2015

does this mean we should add System.currentTimeMillis() to the fobidden APIs?

@s1monw
Copy link
Contributor

s1monw commented Jun 17, 2015

@bleskes I guess that would make sense... lets see if it's possible though

@mikemccand
Copy link
Contributor Author

does this mean we should add System.currentTimeMillis() to the fobidden APIs?

+1

We talked about this in #11058 but there are a number of public APIs that expose their System.currentTimeMillis and it wasn't clear if we could change them ... i.e. whether the caller somehow expected to be able to compare results returned from those APIs with their own calls to System.currentTimeMillis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants