forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: write to system.rangelog async
Previously, writing to the system.rangelog table was done as part of the transaction that triggered the range change (e.g. split, merge, rebalance). If the logging failed for some reason (e.g. JSON being logged was too large), the entire transaction needed to be retried. This has caused at least one major incident. This change introduces the option to write to system.rangelog async, and not as part of the original transaction; this option is also now used by default for all writes to system.rangelog. When logging async, the actual write to system.rangelog is done in an async task executed as a commit trigger after the original transaction ends. Epic: CRDB-16517 Fixes: cockroachdb#82538 Informs: cockroachdb#104075 Release note: None
- Loading branch information
1 parent
c6255a1
commit 64132d3
Showing
10 changed files
with
288 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.