Skip to content

Commit

Permalink
KafkaSinkCluster: Error on AlterReplicaLogDirs (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Nov 26, 2024
1 parent a6a4b1c commit 13d8842
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shotover/src/transforms/kafka/sink_cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,18 @@ Shotover cannot handle this request as it is not appropriate for shotover to shu
The connection to the client has been closed."
));
}
Some(Frame::Kafka(KafkaFrame::Request {
body: RequestBody::AlterReplicaLogDirs(_),
..
})) => {
return Err(anyhow!(
"Client sent AlterReplicaLogDirs request.
Shotover has not implemented support for this message type.
It could theoretically be supported by performing the inverse of DescribeLogDirs.
i.e. Define a custom path format like `actual-kafka-broker-id3:/original/log/dir/path` and then parse the broker id and send the original path to that broker.
But it is expected that if you are using shotover as a proxy you do not care about the internal state of the kafka cluster enough to use AlterReplicaLogDirs."
));
}
Some(Frame::Kafka(KafkaFrame::Request {
body: RequestBody::UnregisterBroker(_),
..
Expand Down

0 comments on commit 13d8842

Please sign in to comment.