Skip to content

Commit

Permalink
Error on UnregisterBroker (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Nov 19, 2024
1 parent 73ac04c commit 3f76b54
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions shotover/src/transforms/kafka/sink_cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,17 @@ The connection to the client has been closed."#
return Err(anyhow!(
"Client sent ControlledShutdown request.
Shotover cannot handle this request as it is not appropriate for shotover to shutdown.
The connection to the client has been closed."
));
}
Some(Frame::Kafka(KafkaFrame::Request {
body: RequestBody::UnregisterBroker(_),
..
})) => {
// This message types is a replacement for ControlledShutdown so the same reasoning applies.
return Err(anyhow!(
"Client sent UnregisterBroker request.
Shotover cannot handle this request as it is not appropriate for shotover to shutdown.
The connection to the client has been closed."
));
}
Expand Down

0 comments on commit 3f76b54

Please sign in to comment.