Skip to content

fix: keep live nodes when pruning cannot read a version - #1160

Open
mmsqe wants to merge 1 commit into
cosmos:masterfrom
mmsqe:fix_pebble_main
Open

mmsqe wants to merge 1 commit into
cosmos:masterfrom
mmsqe:fix_pebble_main

Conversation

@mmsqe

@mmsqe mmsqe commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

traverseOrphans discarded its iterators' errors and returned success, so a failed read cost a version its live nodes or silently left orphans behind. Returning error costs nothing: startPruning retries the version.

traverseOrphans discarded its iterators' errors and returned success,
so a failed read cost a version its live nodes or silently left orphans
behind. Returning error costs nothing: startPruning retries the version.
@yihuang

yihuang commented Aug 27, 2026

Copy link
Copy Markdown

Close #1105, this is the only case that we know could cause that.

@mmsqe
mmsqe marked this pull request as ready for review August 27, 2026 13:35
@mmsqe
mmsqe requested a review from a team as a code owner August 27, 2026 13:35
@greptile-apps

greptile-apps Bot commented Aug 27, 2026

Copy link
Copy Markdown

PR author is not in the allowed authors list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants