[EXPERIMENT] Validate combined storage shard-writer fixes (delete + WriteTimeSeriesEntry) - #955
[EXPERIMENT] Validate combined storage shard-writer fixes (delete + WriteTimeSeriesEntry)#955matthyx wants to merge 1 commit into
Conversation
…e + WriteTimeSeriesEntry) Throwaway validation PR -- do not merge. Follow-up to #954 (closed): that PR validated routing ConsolidateTimeSeries's Delete through storage's write-shard system, which reduced failures from 17-18/31 to 13/31 and dropped "database is locked" occurrences to near-zero. Re-tracing the remaining 13 failures' logs found the SAME raw-connection bypass in AfterCreate's WriteTimeSeriesEntry call (fired on essentially every TS ContainerProfile create), surfacing as "sqlite: step: interrupted" -- initially misread as unrelated node-agent-side flakiness since the failing tests' own assertions don't mention storage. This PR points the test storage deployment at kubescape/storage's fix/route-consolidation-delete-through-shard branch (commit f3bf94e5, not yet merged upstream) with BOTH fixes applied, manually built and pushed to quay.io/matthiasb_1/storage:test-shard-writer-fixes-f3bf94e5, to empirically confirm the combined fix further reduces this repo's residual failures. Local repro (containerprofile_load_test.go, LOAD_CONSOLIDATORS=1) with both fixes: p50=55us, p99~4ms, only 1/8s of ops over 5s -- improved on the first fix's already-good numbers. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd
|
Warning Review limit reachedNext included review available in 1 minute. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Result: 17/31 failed — worse than #954's 13/31, roughly back to the original 17/31 baseline (#951). Mixed signal, not a clean win this time. The targeted write-path errors stayed low, consistent with the fix still working: checked 3 failing jobs — But apiserver Honest read: given this whole investigation has already seen 13-20/31 swings across nominally-similar runs (CI noise: runner variance, GC pauses, GH Actions infra), this could be normal variance rather than a regression introduced by the WriteTimeSeriesEntry fix — the specific error signature it targets did NOT come back. But I can't rule out a subtler interaction (e.g. the extra Not chasing this further in isolation — a deeper, more careful pass (comprehensive audit of every remaining bypass, including the harder atomicity problem in Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com |
Purpose
Throwaway validation PR — do not merge.
Follow-up to #954 (closed): that PR validated routing
ConsolidateTimeSeries'sDeletethrough storage's write-shard system, which reduced failures from 17-18/31 to 13/31 and droppeddatabase is lockedoccurrences to near-zero per job.Re-tracing the remaining 13 failures' logs (Test_02, Test_08, Test_11 — initially assessed as an unrelated node-agent-side flakiness source, since their own assertion messages don't mention storage) found the same raw-connection bypass in
AfterCreate'sWriteTimeSeriesEntrycall — fired on essentially every TSContainerProfilecreate, i.e. most of node-agent's write traffic — surfacing assqlite: step: interruptedinstead ofdatabase is locked.This PR points the test storage deployment at kubescape/storage#399 with a second commit applied (routing
WriteTimeSeriesEntrythrough the samerunOnShardmechanism), manually built and pushed toquay.io/matthiasb_1/storage:test-shard-writer-fixes-f3bf94e5, to empirically confirm the combined fix further reduces this repo's residual failures.Local repro (
containerprofile_load_test.go,LOAD_CONSOLIDATORS=1) with both fixes: p50=55µs, p99~4ms, only 1/8s of ops over 5s — improved on the first fix's already-good numbers.Test plan
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd
https://claude.ai/code/session_01LCMGT6Po2tSr1VEDVrbbYd
AI-skills: none