Skip to content

fix(runtime): skip config reload when no admin_connector is configured - #9836

Open
cnbehr wants to merge 1 commit into
rilldata:mainfrom
cnbehr:cnbehr/config-reloader-skip-without-admin
Open

fix(runtime): skip config reload when no admin_connector is configured#9836
cnbehr wants to merge 1 commit into
rilldata:mainfrom
cnbehr:cnbehr/config-reloader-skip-without-admin

Conversation

@cnbehr

@cnbehr cnbehr commented Aug 26, 2026

Copy link
Copy Markdown

CreateInstance on a standalone runtime (rill runtime start, which enables the config reloader, without an admin connector) returns a 500 with unknown connector "": configReloader.reloadConfig acquires the admin service unconditionally, and the instance it just created has no admin_connector. The instance is actually created and fully functional, so the error is purely spurious.

  • Skip the reload when inst.AdminConnector == "", matching the guard runtime.go already applies before fetching cloud variables ("not configured only for tests").
  • Regression test creates an instance on a runtime with the config reloader enabled and asserts ReloadConfig is a clean no-op; it fails with unknown connector "" without the fix.

Closes #9832

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

CreateInstance on a standalone runtime (rill runtime start, config
reloader enabled, no admin connector) returned a 500 with
'unknown connector ""' because reloadConfig acquired the admin service
unconditionally. The instance was actually created and functional, so
the error was purely spurious. Skip the reload when inst.AdminConnector
is empty, matching the guard runtime.go already applies before fetching
cloud variables.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtime: CreateInstance returns 500 unknown connector "" without an admin connector — missing guard in config reloader

1 participant