Repository navigation
Revert "Use the HC-Tree journal on flagged leaders and followers" - #2833
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11fbdb2cb1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
The Auth-side test compatibility fixes for the re-land are in Auth PR 25180: local test handles now match the servers' native-journal mode, and the query-plan test uses its own table instead of the legacy journal. The affected fixtures pass against both Bedrock versions. The full native Auth suite still has 30 failures, including a reproduced read-corruption error and shutdown hang; details are in the Auth PR. |
Details
Reverts #2818.
After #2818, Bedrock crashes on HC-Tree databases even when
-hctreeExperimentalModeis not set.WAL2 databases are fine. We see this every time in a downstream HC-Tree test suite that passed before this merge.
Bedrock crashes in two places, and both look like HC-Tree reporting a corrupt database:
SQueryhits its "Database corruption was detected" check and exits.SQLite::commitfails its check thatCOMMITsucceeded.These parts of #2818 still affect HC-Tree with the flag off and are worth checking before re-landing:
SQLiteobject is created, so it may run more than once on a new database.ORDER BY id LIMIT n.getCommit,getCompressedCommits) use a new query.hctstatsis read withSQueryinstead ofread().writeLockis held for less time. This probably only matters whenBlockWritesis used.cc @tylerkaraszewski
Fixed Issues
N/A. Unblocks deploys while #2818 is looked into.
Tests
Goes back to the previous code, which passed the same HC-Tree tests. The resulting tree is identical to the commit before #2818 (6df552e).