Skip to content

Fix HasRestoredToEnd() stuck when beginOffset == endOffset (#463)#464

Merged
LGouellec merged 1 commit into
LGouellec:developfrom
pdouelle:fix/restore-stuck-compacted-changelogs
Apr 9, 2026
Merged

Fix HasRestoredToEnd() stuck when beginOffset == endOffset (#463)#464
LGouellec merged 1 commit into
LGouellec:developfrom
pdouelle:fix/restore-stuck-compacted-changelogs

Conversation

@pdouelle

@pdouelle pdouelle commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

When a changelog topic is empty after segment deletion (beginOffset == endOffset) and no checkpoint exists, the restore consumer has nothing to consume but HasRestoredToEnd() returns false forever because the strict > comparison misses the == case.

Change > to >= to correctly detect empty topics.

…#463)

When a changelog topic is empty after segment deletion
(beginOffset == endOffset) and no checkpoint exists, the restore
consumer has nothing to consume but HasRestoredToEnd() returns false
forever because the strict > comparison misses the == case.

Change > to >= to correctly detect empty topics.
@LGouellec LGouellec merged commit 20c2dab into LGouellec:develop Apr 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants