-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove index version and transport version from main endpoint response #97675
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
Remove index version and transport version from main endpoint response #97675
Conversation
The index and transport versions are low level details of how a node behaves in a cluster. They were recently added to the main endpoint response, but they are too low level and should be moved to another endpoint TBD. This commit removes those versions from the main endpoint response. Due to the fact lucene version is now derived from index version, this commit also adds an explicit lucene version member to the main response.
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java
Show resolved
Hide resolved
|
@thecoop I'm not sure how we can modify the verify version constants tests going forward. The test is built on the assumption we keep a full mapping of version to lucene version for every version of ES, but that is no longer the case. You changed the test to infer the lucene version from index version, but by removing index version from the root endpoint, we no longer have that. I'm wondering if this test still makes sense to keep. WDYT? |
|
I think if the test doesn't make sense anymore it can go. We can still test that the lucene version it reports is the most recent one, but any more than that doesn't make sense. |
|
The lucene version it reports won't be the latest. This test is a bwc test that checks the version of lucene reported by older versions of ES matches what lucene version we have in our local code for that older version. I guess we can migrate this test to use a new diagnostic api that returns index version, but until then I don't think it makes sense since we have decoupled Version from Lucene version. |
|
I will disable the test here. I opened #97736 so we don't forget to re-enable the test once we have a better way to find index version through an api. |
This is a partial backport of elastic#97675. The transport version is a low level detail of how a node behaves in a cluster. It was recently added to the main endpoint response, but is too low level and should be moved to another endpoint TBD. This commit removes it from the main response, though keeps it as part of the wire format for the MainResponse to avoid any need for a bwc change to the format.
This is a partial backport of #97675. The transport version is a low level detail of how a node behaves in a cluster. It was recently added to the main endpoint response, but is too low level and should be moved to another endpoint TBD. This commit removes it from the main response, though keeps it as part of the wire format for the MainResponse to avoid any need for a bwc change to the format.
The index and transport versions are low level details of how a node behaves in a cluster. They were recently added to the main endpoint response, but they are too low level and should be moved to another endpoint TBD.
This commit removes those versions from the main endpoint response. Due to the fact lucene version is now derived from index version, this commit also adds an explicit lucene version member to the main response. Note that while this effectively reverts #97386 and #96900, the reading/writing transport code remains temporarily.