File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
src/v/redpanda/admin/services/datalake Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -193,4 +193,22 @@ datalake_service_impl::get_coordinator_state(
193193 co_return response;
194194}
195195
196+ ss::future<proto::admin::coordinator_reset_pending_state_response>
197+ datalake_service_impl::coordinator_reset_pending_state (
198+ serde::pb::rpc::context,
199+ proto::admin::coordinator_reset_pending_state_request req) {
200+ datalake::coordinator::reset_pending_state_request fe_req;
201+ fe_req.topic = model::topic{req.get_topic_name ()};
202+ if (!_coordinator_fe->local_is_initialized ()) {
203+ throw serde::pb::rpc::unavailable_exception (
204+ " Datalake coordinator frontend not initialized" );
205+ }
206+ auto fe_res = co_await _coordinator_fe->local ().reset_pending_state (fe_req);
207+ if (fe_res.errc != datalake::coordinator::errc::ok) {
208+ throw serde::pb::rpc::internal_exception (
209+ fmt::format (" Datalake coordinator error: {}" , fe_res.errc ));
210+ }
211+ co_return proto::admin::coordinator_reset_pending_state_response{};
212+ }
213+
196214} // namespace admin
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ class datalake_service_impl : public proto::admin::datalake_service {
2828 serde::pb::rpc::context,
2929 proto::admin::get_coordinator_state_request) override ;
3030
31+ ss::future<proto::admin::coordinator_reset_pending_state_response>
32+ coordinator_reset_pending_state (
33+ serde::pb::rpc::context,
34+ proto::admin::coordinator_reset_pending_state_request) override ;
35+
3136private:
3237 admin::proxy::client _proxy_client;
3338
You can’t perform that action at this time.
0 commit comments