You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix concurrent serialization test for StoredScript (elastic#82278)
This fixes the concurrent toXContent tests for `StoredScript`. It turns
out that `StoredScript`'s tests are the only tests to encode a very long
string and `SMILE`'s xcontent serialization has unpredictable behavior
for long strings. It'll always produce a valid encoding, but sometimes
long strings will be output with the marker for utf-8 instead of ascii.
That causes the bytes comparison that the concurrent serialization
tests. So we never test with SMILE here. That's ok. The test is mostly
about concurrency, not xcontent type.
Also! The error message was quite difficult to debug here. So I improved
it while I was there.
Closeselastic#82257
0 commit comments