Skip to content

Draft: add failing test reproducing IsLocalMemberLearner panic - #1

Draft
eltypical wants to merge 6 commits into
mainfrom
tdd/islearner-panic-test
Draft

Draft: add failing test reproducing IsLocalMemberLearner panic#1
eltypical wants to merge 6 commits into
mainfrom
tdd/islearner-panic-test

Conversation

@eltypical

Copy link
Copy Markdown
Owner

This draft PR intentionally adds a single failing test (islearner_panic_test.go) to capture CI logs for the panic in membership.RaftCluster.IsLocalMemberLearner when the local member is missing during Status evaluation.

No fixes included yet. This is for TDD and log collection only.

eltypical and others added 6 commits July 28, 2026 16:11
This test intentionally triggers a panic by calling IsLocalMemberLearner when the local member has been removed/missing, matching the production crash path observed via Status.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…rner

If the local ID is absent from cluster members (e.g., concurrent removal),
log a warning and return false instead of panicking. Keeps Status() calls
safe under concurrent membership changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…educe log spam during removals

Signed-off-by: Kiell Tampubolon <kiell.tampubolon@constellar.co>
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.

1 participant