Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/v/pandaproxy/schema_registry/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ ss::future<> api::start() {
co_await _service.invoke_on_all(&service::start);
}

ss::future<> api::stop_clients() {
co_await _client.invoke_on_all(&kafka::client::client::stop);
}

ss::future<> api::stop() {
vlog(srlog.debug, "Stopping schema registry API...");
co_await _client.invoke_on_all(&kafka::client::client::stop);
Expand Down
1 change: 1 addition & 0 deletions src/v/pandaproxy/schema_registry/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class api {

ss::future<> start();
ss::future<> stop();
ss::future<> stop_clients();
ss::future<> restart();

const configuration& get_config() const;
Expand Down
5 changes: 5 additions & 0 deletions src/v/redpanda/application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ void application::shutdown() {
return cloud_io.invoke_on_all(&cloud_io::remote::request_stop);
});
}
// Shutdown schema registry clients before the datalake subsystems to
// ensure the datalake subsystems can shutdown quickly.
if (_schema_registry) {
_schema_registry->stop_clients().get();
}
/**
* Shutdown the datalake services before stopping all the partitions.
* NOTE: translators may call into the coordinator via the coordinator
Expand Down