← Back to Pull requests

fix(inkless:config): require consolidation for the classic-to-diskless switch [KC-596] #822

Closed
unknown closed this pull request without merging on Oct 13, 2026 14:49 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 11:54 UTC
Author

Inkless does not support a switched topic that does not consolidate. Before this change, diskless.remote.storage.consolidation.enable required diskless.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=true now requires diskless.remote.storage.consolidation.enable=true, which still requires diskless.managed.rf.enable and remote.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=true

The 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.fromProps unit test. InklessConfigsTest.allowFromClassicRequiresConsolidation covers it through a cluster start and asserts the error message. consolidationWithoutAllowFromClassicSucceeds covers 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 docker ts-unification example) now set consolidation together with the switch.

[KC-596]

[KC-596]: https://aiven.atlassian.net/browse/KC-596?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

Diff: 254 lines (+190 / -64) across 3 files Reviewer: viktorsomogyi Review duration: 1614m
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
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 62.3% (MEDIUM) · Higher = larger blast radius
62.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 24.6% · Safe to merge
24.6%
Repository