Skip to content

[core] Validate compaction changelog files during checkpoint recovery - #11366

Merged
JingsongLi merged 1 commit into
apache:masterfrom
zhangyue19921010:contrib/m06-recovery-quota8-current-20261123
Nov 23, 2026
Merged

JingsongLi merged 1 commit into
apache:masterfrom
zhangyue19921010:contrib/m06-recovery-quota8-current-20261123

Conversation

@zhangyue19921010

Copy link
Copy Markdown
Contributor

Purpose

Fixes #11365.

Include compaction changelog outputs in the existing recovery file check. A primary-key full-compaction writer can produce a changelog before any snapshot is committed; restoring that checkpoint currently accepts the messages after that changelog file has been removed.

Reuse the existing physical-path resolution, deduplication, and missing-file error. Already committed identifiers remain filtered before the check.

Tests

CompactionChangelogRecoveryTest covers a missing output, an intact output read through the streaming scan, and an already committed identifier. The missing-output case fails on the unchanged current base; all three pass after the fix.

All nine scoped tests, including CompactedChangelogPathResolverTest, passed with normal Maven Checkstyle, Spotless, and Enforcer checks, followed by the core source RAT check. Codegen plugin resources were packaged before the executable baseline. JDK 11, Java 8 source target; no full engine job was run.

@zhangyue19921010

Copy link
Copy Markdown
Contributor Author

CI stopped in JDK setup (tar exit 2). Could you rerun the failed job?

@JingsongLi
JingsongLi merged commit 9aece5f into apache:master Nov 23, 2026
18 of 19 checks 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.

[Bug] Recovery accepts a missing compaction changelog before any snapshot is committed

2 participants