fix(inkless:controller): return a retriable error when the control plane is unavailable [KC-649] #839
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 171 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.308
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #839"
general
weight: 0.35
gqmelo
While the gated control plane is unavailable, DeleteTopics, CreateTopics, and CreatePartitions on diskless topics let
ControlPlaneUnavailableExceptionescape, and clients got a message-lessUNKNOWN_SERVER_ERRORfor every topic in the request. They couldn't tell a transient outage from a server bug.ControllerApisnow answers only the affected diskless topics withKAFKA_STORAGE_ERROR, the retriable code brokers already return for the same condition. The message carries the control plane's own reason. DeleteTopics leaves those topics out of the KRaft deletion, so the retry runs the idempotent diskless delete again. Other topics in the request keep their own results.The CreateTopics retry path never wrote control-plane rows: a
TOPIC_ALREADY_EXISTSresult carries no topic ID, partition count, or configs, so thediskless.enablefilter dropped it. The controller now reads an existing diskless topic from the metadata image and inserts rows for its born-diskless partitions, as the CreatePartitions retry does.Test plan
ControllerApisTest: new cases for delete, create, create partitions, the existing-topic retry, and an existing classic topic.InklessControlPlaneOutageClusterTest: a diskless outage test covers retriable failures, retries after the connection string is restored, and the final deletion from KRaft and the control plane.