-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Removing unneeded getTookInMillis method #23923
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
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
@jasontedor are you good with this? It is a breaking change for the java api and I wonder if it is convenient for users to still retrieve the |
|
I think we only need to provide one of |
javanna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heya @olcbean thanks for your PR! I find it handier to return the TimeValue. Would you mind removing the getTookInMillis method instead of getTook?
|
Thanks for the review @javanna! I just reintroduced the |
|
@javanna as this is a |
|
right @olcbean could you add a note here: https://github.com/elastic/elasticsearch/blob/master/docs/reference/migration/migrate_6_0/java.asciidoc ? Thanks! |
|
Thanks @javanna! I just added a note to the docs. |
|
jenkins test this please |
|
@olcbean sorry it has taken me a week to get to this, would you mind resolving the merge conflict in the migrate guide. Running tests as we speak, I should be able to merge this today. |
|
@javanna just resolved the merge conflict and fixed a test. |
javanna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I am going to merge this
|
thanks @olcbean ! |
* master: (62 commits) Handle already closed while filling gaps [DOCS] Clarify behaviour of scripted-metric arg with empty parent buckets [DOCS] Clarify connections and gateway nodes selection in cross cluster search docs (elastic#24859) Java api: Remove unneeded getTookInMillis method (elastic#23923) Adds nodes usage API to monitor usages of actions (elastic#24169) Add superset size to Significant Term REST response (elastic#24865) Disallow multiple parent-join fields per mapping (elastic#25002) [Test] Remove unused test resources in core (elastic#25011) Scripting: Add optional context parameter to put stored script requests (elastic#25014) Extract a common base class for scroll executions (elastic#24979) Build: fix version sorting Build: Move verifyVersions to new branchConsistency task (elastic#25009) Add backwards compatibility indices Build: improve verifyVersions error message (elastic#25006) Add version 5.4.2 constant Docs: More search speed advices. (elastic#24802) Add version 5.3.3 constant Reorganize docs of global ordinals. (elastic#24982) Provide the TransportRequest during validation of a search context (elastic#24985) [TEST] fix SearchIT assertion to also accept took set to 0 ...
According to https://github.com/elastic/elasticsearch/pull/23767/files/7b70704ab45eb3ba98e0c31ce4eb8e65dd963381#r109564828
getTook()methods should be removed fromBulkResponseandSearchResponseas there is an alternativegetTookInMillis()which can be used.Edit : use
getTook()instead ofgetTookInMillis()