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
store: Fixed critical bug, when certain not-existing value queried was causing "invalid size" error. (#2393)
Reason why we could not reproduce it locally was that for most of non-existing value
we were lucky that buffer was still long enough and we could read and decode some (malformed) variadic type.
For certain rare cases, buffer was not long enough.
Fixed and spotted thanks to amazing @mkabischev!
* Added more regression tests for binary header.
Without the fix it fails with:
```
header_test.go:154: header_test.go:154:
exp: range not found
got: get postings offset entry: invalid size
```
Signed-off-by: Bartlomiej Plotka <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
26
26
-[#2319](https://github.com/thanos-io/thanos/pull/2319) Query: fixed inconsistent naming of metrics.
27
27
-[#2390](https://github.com/thanos-io/thanos/pull/2390) Store: Fixed bug which was causing all posting offsets to be used instead of 1/32 as it was meant.
28
28
Added hidden flag to control this behavior.
29
+
-[#2393](https://github.com/thanos-io/thanos/pull/2393) Store: Fixed bug causing certain not-existing label values queried to fail with "invalid-size" error from binary header.
0 commit comments