-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
83404: batcheval: support MVCC range tombstones in `AddSSTable` r=aliher1911 a=erikgrinaker **storage: expose `IterOptions` for SST iterators** This patch allows callers to pass `IterOptions` for the new SST iterators. Release note: None **batcheval: support MVCC range tombstones in `AddSSTable`** This patch adds initial support for MVCC range tombstones in `AddSSTable`, allowing ingestion of SSTs with such tombstones. Callers must check the `MVCCRangeTombstones` version gate before writing them. They are not yet supported with `DisallowConflicts`, `DisallowShadowing`, and `DisallowShadowingBelow` (including checking for conflicts with existing range tombstones), and will error if an SST contains any MVCC range tombstone. This is not needed for the initial cluster replication use-case, and proper support would require MVCC stats support for range tombstones as well -- this will be implemented later. Resolves #76234. Release note: None 83541: sql: fix panic in plan gist decoding r=mgartner a=mgartner #### sql: fix panic in plan gist decoding Previously, the plan gist decoder would set tables and indexes to nil in `exec.Node`s when they could not be decoded, which can happen when tables or indexes are dropped. This could cause node-crashing panics because `explain.Emit` assumes that `exec.Node`s never have nil tables or indexes. This commit fixes the issue assigning two new structs to `exec.Node` fields instead of `nil`: `unknownTable` which implements `cat.Table` and `unknownIndex` which implements `cat.Index`. This avoids nil pointer exceptions when `explain.Emit` tries to access these fields. Fixes #83537 Release note (bug fix): A bug has been fixed which could crash nodes when visiting the console statements page. This bug was present since version 21.2.0. #### sql: move panic catcher in plan gist decoder This commit moves the panic catcher in `DecodePlanGistToPlan` to its calling function `DecodePlanGistToRows`. This allows panics originating in `Emit` to be caught without crashing nodes. Release note: None Co-authored-by: Erik Grinaker <[email protected]> Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
16 changed files
with
682 additions
and
99 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
Oops, something went wrong.