-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Kibana App] Adapt to new hits.total format in Elasticsearch #26356
Comments
Pinging @elastic/kibana-app |
The plan is for that Elasticsearch PR to be merged on Monday which means in order to prevent ci breakage, Step 1 should be complete before then. And in order to verify that ci will continue to run once that PR is merged, we should test ci ahead of time against that branch. @spalger - do you know the best way to run ci against an elasticsearch branch? I don't want to run it locally. I could create a kibana branch called cc @LeeDr |
Is the |
@jimczi Could you clarify on the deprecation log warning for 7.0 above? |
I have setup a simple PR, that just builds against that ES PR, so everyone can see around what tests will fail master from Monday on, once the PR is merged: #26360 |
We'll need to test Kibana N.M -> Elasticsearch N.M+1 and Kibana N.M -> Elasticsearch N+1 .0 because users can upgrade their Elasticsearch before their Kibana and everything needs to work. |
@timroes I just created @elastic/es-ui to represent our team, thanks for the nudge. |
Setting |
Thanks @timroes. The handle is @elastic/stack-monitoring |
@jimczi I assume A quick search shows ~50 places the |
Discussed with @jimczi and support for
This does not change the fact that eventually I am going to leave the 'blocker' label for now until this is confirmed, but given the situation I don't think we need to migrate away from |
This has been addressed |
Once elastic/elasticsearch#35849 is merged the format of
hits.total
as returned by Elasticsearch will change. We need to cater for that, since we read outhits.total
in some places.The way we are planning to do this is the following:
rest_total_hits_as_int=true
to all requests, that we need to gethits.total
from in the end. This will cause the API to return the old format for requests, where nothing changed. Since this parameter is available since 6.6, we can backport that change to the6.x
branch.6.x
branch anymore (after 7.0 release), adopt all places that are consuminghits.total
to the new format, and switch over the parameter to usetrack_total_hits=true
instead to get the exact result in all those requests.We are going this way, since that allows us to have
master
and6.x
branch in sync before the 7.0 release. If we would directly switch to the new format, we can't backport this change to6.x
and thusmaster
and6.x
will have a different state in all the places we are accessinghits.total
and are executing a query. Since this will make backporting future changes to6.x
more difficult we won't change to the new format as long as we are still actively developing features on6.x
.Since the
rest_total_hits_as_int
parameter is scheduled for removal in 8.0, I will directly mark this issue as a blocker for 8.0 as a reminder, that step 2 needs to be implemented till then.When this is completed, we can remove the temporary shim that was introduced as part of #61565.
Related issues/PRs
CC
Since I did a quick search through the repository for
hits.total
it seems the following teams are effected and might establish a similar progress for moving over.cc @elastic/kibana-platform used in es_archiver and saved objects
cc @elastic/apm-ui Used in a couple of places
cc @elastic/ml-ui Used in a couple of places
cc @elastic/kibana-management (I couldn't find a handle for elasticsearch UI yet): used in watcher
cc whoever manages Stack monitoring
The text was updated successfully, but these errors were encountered: