-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
[Tests] ShardSearchTransportRequestTests.testSerialization fails on 5.x #22808
Comments
Also failing on master (f128b7a):
|
I traced this down to a different cacheKey in the deserialized ShardSearchTransportRequest. The reason seems to be that for the cacheKey computation we use ShardSearchLocalRequest#innerWriteTo which in turn deserialized the SearchSourceBuilder. While debugging I saw differences in the cacheKey bytes array where the source was rendered. Looking closer at the SearchSourceBuilder for this seed I found that the |
Usually the order in which we serialize sets and maps of things doesn't matter, but since InnerHitBuilder is part of SearchSourceBuilder, which is in turn used as a cache key in its bytes serialization, we need to ensure the order of all these fields when writing them to an output stream. This adds tests and makes sure we iterate over the scriptField set and the childInnerHits map in a fixed order. Closes elastic#22808
Usually the order in which we serialize sets and maps of things doesn't matter, but since InnerHitBuilder is part of SearchSourceBuilder, which is in turn used as a cache key in its bytes serialization, we need to ensure the order of all these fields when writing them to an output stream. This adds tests and makes sure we iterate over the scriptField set and the childInnerHits map in a fixed order. Closes #22808
Usually the order in which we serialize sets and maps of things doesn't matter, but since InnerHitBuilder is part of SearchSourceBuilder, which is in turn used as a cache key in its bytes serialization, we need to ensure the order of all these fields when writing them to an output stream. This adds tests and makes sure we iterate over the scriptField set and the childInnerHits map in a fixed order. Closes #22808
This fails reproducibly on 5.x (5d48757) as seen here:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+multijob-unix-compatibility/os=debian/474/consoleFull
Reproduce line:
The text was updated successfully, but these errors were encountered: