-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](recycler) Fix potential data leak when a partial update load wh…
…ich has publish conflict fails (#45626) ### What problem does this PR solve? when recycling tmp rowsets, if rowset's state is `RowsetStatePB::BEGIN_PARTIAL_UPDATE`, the `num_segments` field in `RowsetMetaCloudPB` may not reflect the actual segments num(This may happen if partial update load writes a new segment to an existing tmp rowset in publish phase due to conflict and fails before it updates segments num in `RowsetMetaCloudPB` in MS successfully). So we need to delete the rowsets by prefix rather than delete by path in this case. related case: #45795
- Loading branch information
Showing
2 changed files
with
97 additions
and
0 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