Skip to content

Add missing delegate methods to NodeIndicesStats #28092

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

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

scottsom
Copy link

@scottsom scottsom commented Jan 5, 2018

When calling the node stats action via the Java API it was not able to return information about the translog even though that is available through the REST API. I've added the missing methods to make the responses consistent.

@elasticmachine
Copy link
Collaborator

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?

1 similar comment
@elasticmachine
Copy link
Collaborator

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?

@tvernum
Copy link
Contributor

tvernum commented Jan 5, 2018

@elasticmachine OK to test

@ywelsch ywelsch requested a review from cbuescher January 5, 2018 09:19
@cbuescher cbuescher self-assigned this Jan 5, 2018
@scottsom
Copy link
Author

scottsom commented Jan 5, 2018

I will note that this object is used to build the /cat/_nodes response, so as part of this change they could be exposed there too.

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scottsom thanks for this PR, I agree we should expose stats available through REST also through the Java API. As for using this to build the /cat/_nodes response, are you proposing to add this information to the table build by RestNodesAction? If so, I'd agree this might be a good idea but would open a separate issue and/or PR for that because this might have other REST compatibility implications.

@scottsom
Copy link
Author

scottsom commented Jan 5, 2018

Yes, I can add it to the table build in RestNodesAction. I'll create a follow up PR to do that.

@cbuescher
Copy link
Member

@scottsom thanks, I will merge this into the current master and 6.x then.
Note that adding something the _cat output might require a bit more of a discussion (its somewhat of an interface change, so might break ppls code that e.g. parse the _cat output), but since it doesn't seem to be a complicated change I think those discussions can happen on the PR.

@cbuescher cbuescher merged commit 7180e53 into elastic:master Jan 5, 2018
cbuescher pushed a commit that referenced this pull request Jan 5, 2018
When calling the node stats action via the Java API it was not able to return
information about warmers and translog even though that is available through 
the REST API. This change adds methods to make the responses more 
consistent.
scottsom pushed a commit to scottsom/elasticsearch that referenced this pull request Jan 5, 2018
This is a follow up to elastic#28092 which added translog and warmer stats to the Java API.
This change builds off of that to also expose these stats through the cat API.
@scottsom scottsom deleted the missing_delegates branch January 5, 2018 14:37
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Jan 5, 2018
* master:
  test: replaced try-catch statements with expectThrows(...)
  Add getWarmer and getTranslog method to NodeIndicesStats (elastic#28092)
  fix doc mistake
  Added ASN support for Ingest GeoIP plugin.
  Fix global aggregation that requires breadth first and scores (elastic#27942)
  Introduce Gradle wrapper
  Ignore GIT_COMMIT when calculating commit hash
  Re-enable bwc tests after elastic#27881 was backported
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Jan 6, 2018
* master: (25 commits)
  Remove Gradle cheatsheet
  Fix reproduction info to point to Gradle wrapper
  Update platforms tests to use Gradle wrapper
  Update testing docs to reflect Gradle wrapper
  Painless: Modify Loader to Load Classes Directly from Definition (elastic#28088)
  Update contributing docs to use the Gradle wrapper
  Create nio-transport plugin for NioTransport (elastic#27949)
  test: replaced try-catch statements with expectThrows(...)
  Add getWarmer and getTranslog method to NodeIndicesStats (elastic#28092)
  fix doc mistake
  Added ASN support for Ingest GeoIP plugin.
  Fix global aggregation that requires breadth first and scores (elastic#27942)
  Introduce Gradle wrapper
  Ignore GIT_COMMIT when calculating commit hash
  Re-enable bwc tests after elastic#27881 was backported
  Set the elasticsearch-nio codebase for tests (elastic#28067)
  Bump compat version for local depdendent test to 6.2.0
  Pass `java.locale.providers=COMPAT` to Java 9 onwards (elastic#28080)
  Allow shrinking of indices from a previous major (elastic#28076)
  Remove deprecated exceptions (elastic#28059)
  ...
jasontedor added a commit that referenced this pull request Jan 6, 2018
* master:
  Remove out-of-date projectile file
  Remove Gradle cheatsheet
  Fix reproduction info to point to Gradle wrapper
  Update platforms tests to use Gradle wrapper
  Update testing docs to reflect Gradle wrapper
  Painless: Modify Loader to Load Classes Directly from Definition (#28088)
  Update contributing docs to use the Gradle wrapper
  Create nio-transport plugin for NioTransport (#27949)
  test: replaced try-catch statements with expectThrows(...)
  Add getWarmer and getTranslog method to NodeIndicesStats (#28092)
  fix doc mistake
  Added ASN support for Ingest GeoIP plugin.
  Fix global aggregation that requires breadth first and scores (#27942)
jasontedor added a commit that referenced this pull request Jan 6, 2018
* 6.x:
  Remove out-of-date projectile file
  Remove Gradle cheatsheet
  Fix reproduction info to point to Gradle wrapper
  Update platforms tests to use Gradle wrapper
  Update testing docs to reflect Gradle wrapper
  Update contributing docs to use the Gradle wrapper
  test: replaced try-catch statements with expectThrows(...)
  Add getWarmer and getTranslog method to NodeIndicesStats (#28092)
  fix doc mistake
  Added ASN support for Ingest GeoIP plugin.
  Fix global aggregation that requires breadth first and scores (#27942)
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
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.

5 participants