fix(inkless:config): require consolidation for the classic-to-diskless switch [KC-596] #822
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 254 lines diff across 3 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.332
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #822"
general
weight: 0.35
viktorsomogyi
Inkless does not support a switched topic that does not consolidate. Before this change,
diskless.remote.storage.consolidation.enablerequireddiskless.allow.from.classic.enable, but the switch did not require consolidation. A node with the switch on and consolidation off accepted a classic-to-diskless switch and enabled remote storage for the topic, and nothing consolidated it. The same configuration accepted a new diskless topic with remote storage that nothing consolidated. Neither state is supported at any rollout stage.Reverse the dependency in
KafkaConfig.validateValues.diskless.allow.from.classic.enable=truenow requiresdiskless.remote.storage.consolidation.enable=true, which still requiresdiskless.managed.rf.enableandremote.log.storage.system.enable. Consolidation without the switch stays valid. The switch flag is now the control that turns switching off.A node with the switch on and consolidation off fails at startup with:
requirement failed: diskless.allow.from.classic.enable requires diskless.remote.storage.consolidation.enable=trueThe check runs on each node. A controller with the switch on and brokers with consolidation off can still produce the unsupported state. A cluster-wide check is a follow-up.
Testing
The new rule has no
KafkaConfig.fromPropsunit test.InklessConfigsTest.allowFromClassicRequiresConsolidationcovers it through a cluster start and asserts the error message.consolidationWithoutAllowFromClassicSucceedscovers the valid reverse case. The tests for the removed switch prerequisites are dropped, because consolidation enforces the same prerequisites and its tests remain. The cluster and system tests that used the old combination (InklessTopicTypeSwitcherClusterTest,inkless_topic_switch_test.py, and the dockerts-unificationexample) now set consolidation together with the switch.[KC-596]
[KC-596]: https://aiven.atlassian.net/browse/KC-596?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ