Skip to content

enhancement: Remove live-store partition owner on shutdown#6409

Merged
oleg-kozlyuk-grafana merged 8 commits intografana:mainfrom
oleg-kozlyuk-grafana:live-store-unregister-owner-on-shutdown
Feb 12, 2026
Merged

enhancement: Remove live-store partition owner on shutdown#6409
oleg-kozlyuk-grafana merged 8 commits intografana:mainfrom
oleg-kozlyuk-grafana:live-store-unregister-owner-on-shutdown

Conversation

@oleg-kozlyuk-grafana
Copy link
Copy Markdown
Contributor

@oleg-kozlyuk-grafana oleg-kozlyuk-grafana commented Feb 9, 2026

What this PR does:

Changes Live Store logic so that it unregisters as partition owner on shutdown. This prevents an issue where creating an extra availability zone and deleting it leaves inactive owners forever.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47326a298e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread modules/livestore/live_store.go Outdated
…er-owner-on-shutdown

# Conflicts:
#	modules/livestore/live_store_test.go
oleg-kozlyuk-grafana and others added 2 commits February 12, 2026 19:19
The test has a race condition where the partition ring lifecycler can
start shutting down before stopping() sets the RemoveOwnerOnShutdown
flag, causing the owner to not be removed in time for the assertion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@oleg-kozlyuk-grafana oleg-kozlyuk-grafana enabled auto-merge (squash) February 12, 2026 18:40
@oleg-kozlyuk-grafana oleg-kozlyuk-grafana merged commit c78899c into grafana:main Feb 12, 2026
24 checks passed
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.

2 participants