Skip to content

[Kernel] Automatically cleanup old logs - #7316

Open
austinshores wants to merge 19 commits into
delta-io:masterfrom
capitalone-contributions:kernel-cleanup-logs
Open

austinshores wants to merge 19 commits into
delta-io:masterfrom
capitalone-contributions:kernel-cleanup-logs

Conversation

@austinshores

@austinshores austinshores commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

Resolves #7205

Mimics Spark's approach to cleaning up log files after checkpoint operations. Removes the previous gate preventing Delta Kernel's checkpoint process from automatically cleaning up logs (wasBuildAsLatest) in favor of capping at a maximum version based on the latest checkpoint.

Note that support for V2 checkpoint files was not added as part of this PR, and the algorithm will skip log cleanup if it encounters V2 checkpoints.

Additionally, Delta Kernel's log cleanup didn't include checksum files, so they were included in the cleanup as part of this PR as well.

How was this patch tested?

Updated and added new unit tests

Does this PR introduce any user-facing changes?

Signed-off-by: Austin <austinjshores@gmail.com>
Signed-off-by: Austin <austinjshores@gmail.com>
@foss-contributor foss-contributor added delta-kernel delta-metadata Issues and PRs related to Delta metadata enhancement New feature or request labels Jul 30, 2026

This branch has not been deployed

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

Labels

delta-kernel delta-metadata Issues and PRs related to Delta metadata enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][Kernel] Delta Kernel doesn't cleanup log files after checkpoint

2 participants