Skip to content

admin: handle service restart on shard 0#29519

Merged
pgellert merged 1 commit intoredpanda-data:devfrom
pgellert:fix/admin-svc-restart-shard
Feb 4, 2026
Merged

admin: handle service restart on shard 0#29519
pgellert merged 1 commit intoredpanda-data:devfrom
pgellert:fix/admin-svc-restart-shard

Conversation

@pgellert
Copy link
Copy Markdown
Contributor

@pgellert pgellert commented Feb 4, 2026

The pandaproxy and schema_registry APIs are owned by shard 0. Handle their restart on shard 0 to ensure that any allocations/deallocations happen on the correct shard.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.3.x
  • v25.2.x
  • v25.1.x

Release Notes

Bug Fixes

  • Fixed admin API service restart to handle pandaproxy and schema_registry on the correct shard.

The pandaproxy and schema_registry APIs are owned by shard 0. Handle
their restart on shard 0 to ensure that any allocations/deallocations
happen on the correct shard.
@pgellert pgellert requested a review from a team February 4, 2026 13:43
@pgellert pgellert self-assigned this Feb 4, 2026
@pgellert pgellert requested review from IoannisRP, Copilot and michael-redpanda and removed request for a team February 4, 2026 13:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the admin API service restart functionality was not handling pandaproxy and schema_registry services on the correct shard. These services are owned by shard 0, and the restart operation now ensures that allocations/deallocations happen on shard 0 by using invoke_on(0, ...).

Changes:

  • Modified the restart_service_handler to invoke the restart operation on shard 0 instead of the current shard

co_await restart_redpanda_service(*service);
co_await container().invoke_on(0, [service](admin_server& server) {
return server.restart_redpanda_service(*service);
});
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this in CI failures on another PR (#29517). It's unclear if this could have any user-visible impact, because I expect that the cross-shard de/allocations would still succeed in production, but there is certainly some possibility for data races, so it is definitely worth backporting.

@pgellert pgellert enabled auto-merge February 4, 2026 14:55
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Retry command for Build#80085

please wait until all jobs are finished before running the slash command

/ci-repeat 1
skip-redpanda-build
skip-units
skip-rebase
tests/rptest/tests/write_caching_fi_e2e_test.py::WriteCachingFailureInjectionE2ETest.test_crash_all@{"use_transactions":false}

@pgellert
Copy link
Copy Markdown
Contributor Author

pgellert commented Feb 4, 2026

/ci-repeat 1
skip-redpanda-build
skip-units
skip-rebase
tests/rptest/tests/write_caching_fi_e2e_test.py::WriteCachingFailureInjectionE2ETest.test_crash_all@{"use_transactions":false}

@pgellert
Copy link
Copy Markdown
Contributor Author

pgellert commented Feb 4, 2026

/ci-repeat 1
skip-redpanda-build
skip-units
skip-rebase

@pgellert pgellert merged commit 71d83a5 into redpanda-data:dev Feb 4, 2026
20 checks passed
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v25.3.x

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v25.2.x

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v25.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants