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
{{ message }}
Repository navigation
Thanos and preflight: three Low observations from the #795 review (NUL in parse_answer text, selector-matcher tests, "keeps N days" wording) #804
Part of #26. Found by reviewers 1 and 2 on PR #795; proposed code in review-795/r2-report.md §3 (coordinator's workbench).
NUL in Thanos error text.capacity/thanos.pyparse_answer passes an upstream error string with U+0000 on; PostgreSQL refuses it in JSONB ("the jsonb type also rejects \u0000", postgresql.org/docs/16/datatype-json.html). The preflight step, sweep.py:89 and usage.py:247 all store it. On head a NUL makes the step's row fail to commit; the worker gives up after 5 attempts. Fix in parse_answer, once.
Tests. No test fails if one matcher of the retention selector (namespace, job) is removed, and the replica-minimum test always puts the minimum last.
Wording. The preflight output says "keeps N days" for a time-retention limit, not for data actually held.
How to prove each: a failing test per item, as in the report. Research mandate: quote the source for each fix.
Activity