docs(inkless): document and test the migration of untiered diskless topics #834
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #834"
general
weight: 0.35
giuseppelillo
A diskless topic with
remote.storage.enableset tofalseor unset has no remote tier. A cluster with consolidation off creates every diskless topic in this shape, because the controller rejectsdiskless.enabletogether withremote.storage.enablethere. Enabling consolidation on the cluster doesn't consolidate these topics, and the consolidation guide didn't say how to move such a topic into consolidation.No broker change is needed. With consolidation on, the alter of
remote.storage.enable=truestarts consolidation: the controller commits a leader epoch change for each partition together with the config record. This PR adds the test that pins that behavior and the procedure that relies on it.Commits
test(inkless:consolidation): add untiered diskless topic tests: migration and coexistence tests.docs(inkless): document untiered diskless topic migration: new section inDISKLESS_CONSOLIDATION.md, including the replication factor increase withkafka-reassign-partitions.sh, and the "Untiered Diskless Topic" glossary entry.docs(inkless:docker): bound local retention in the consolidation demo:log.local.retention.in thets-unificationoverlay.Operator notes
NOT_LEADER_OR_FOLLOWERand read nothing. A separate PR fixes this routing. After it merges, the docs can drop this constraint. Each new replica builds its local log from object storage, so the reassignment doesn't copy data between brokers.diskless.allow.from.classic.enable.log.local.retention.value needs a topic-levellocal.retention.in the same alter. The broker defaults also apply to existing classic tiered topics and to new topics, so the docs warn to give short-retention topics a topic-level value first. A diskless create with a short retention and noremote.storage.enablepasses validation, and then every later alter of that topic fails. That gap exists onmainand needs a separate fix.remote.storage.enable=falseand deleting the key while consolidation is on.local.retention.has no diskless-specific default. It resolves toretention., so a migrated topic keeps its whole retention window on the local disk of every replica. The docs recommendlog.local.retention.msandlog.local.retention.bytesin the broker config.Testing
InklessUntieredDisklessMigrationTestneeds an untiered topic, and a cluster with consolidation on cannot create one. The test runs two clusters in sequence on the same directories, Postgres database, and object-store bucket:1. Cluster 1 has consolidation and tiered storage off. It is formatted, creates the diskless topic, produces 10 records, and stops.
setDeleteOnClose(false)keeps the directories.2. Cluster 2 has consolidation and tiered storage on, without
diskless.allow.from.classic.enable, and the same cluster ID. It does not callformat(), so it starts as a rolling restart of cluster 1 would. The test altersremote.storage.enable=trueand checks the result.InklessManagedReplicasRfMigrationClusterTestuses the same pattern. When the WAL start is 5, the local log must start at 5 and end at 10, and a consumer must read 5 records.DeleteRecordsand with no remote segment. It checks the local log start and end, the cross-tier earliest offset, the broker-level local retention, the consumer read, the upload of the pre-migration records to remote storage after a segment roll, and the rejected revert, also withremote.log.delete.on.disable=trueand as a key delete.ListOffsets,DeleteRecords, an unrelated alter, the absence of a local log, and the topic creation rules. A topic with a retention below the broker local retention fails the alter, and passes with a topic-levellocal.retention.ms. It then migrates a second topic and checks that the first is unchanged.Not covered by tests: topics with many partitions or high throughput, and a change of
log.local.retention.under load. The docs state that turning consolidation off for a cluster is unsupported, and describe how to change the local retention without a restart.