fix(inkless:consolidation): freeze cross-tier start during prune #806
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #806"
general
weight: 0.35
giuseppelillo
When consolidation starts after pure-diskless retention, no stored cross-tier start exists. Inferring one from broker-local or remote metadata can publish an unreadable offset or over-delete a switched prefix.
The first consolidated prune now freezes the current WAL start as
remote_log_start_offsetin the same control-plane transaction, then advanceslog_start_offset. Until that handoff completes,RemoteLogManagerkeeps copying while deferring its become-leader report and remote expiration. Switched partitions can submitseal - 1so the handoff can run even when that request removes no WAL records.This prevention-only change does not repair rows that already contain an incorrect
remote_log_start_offset.Test plan
JAVA_HOME=$(/usr/libexec/java_home -v 25) ./gradlew :storage:inkless:generateJooqClasses --rerun-tasks --no-daemon --no-parallelJAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :storage:test --tests org.apache.kafka.server.log.remote.storage.RemoteLogManagerTest --no-daemon --no-parallelJAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :storage:inkless:test --tests 'PruneCrossTierBootstrap' :core:test --tests io.aiven.inkless.consolidation.ConsolidatedDisklessLogPrunerTest --no-daemon --no-parallelJAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :storage:inkless:test --tests io.aiven.inkless.control_plane.InMemoryControlPlanePruneDisklessLogsTest --tests io.aiven.inkless.control_plane.postgres.PruneBatchesBelowHighestTieredOffsetV1Test --no-daemon --no-parallelJAVA_HOME=$(/usr/libexec/java_home -v 17) ./gradlew :storage:checkstyleMain :storage:checkstyleTest :storage:inkless:checkstyleMain :storage:inkless:checkstyleTest --no-daemon --no-parallelbash tests/docker/ducker-ak test tests/kafkatest/tests/inkless/consolidation_cross_tier_earliest_test.py