Skip to content

Backport: Fix false-positive CAS error metrics with memberlist#7427

Closed
friedrichg wants to merge 1 commit intorelease-1.21from
memberlist-cas-error-fix-1.21
Closed

Backport: Fix false-positive CAS error metrics with memberlist#7427
friedrichg wants to merge 1 commit intorelease-1.21from
memberlist-cas-error-fix-1.21

Conversation

@friedrichg
Copy link
Copy Markdown
Member

Summary

  • Cherry-pick of Memberlist cas error code false positive #7408 to release-1.21
  • Fixes false-positive status_code="500" metrics for HA tracker CAS operations when using memberlist by using errors.As to properly unwrap memberlist-wrapped errors in getCasErrorCode

Test plan

  • CI passes
  • Verify getCasErrorCode returns "200" for wrapped IsOperationAborted errors

* use errors.As in getCasErrorCode to unwrap memberlist errors

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>

* fix test

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>

---------

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
@friedrichg friedrichg requested a review from SungJin1212 April 16, 2026 04:31
@friedrichg friedrichg closed this Apr 16, 2026
@friedrichg friedrichg deleted the memberlist-cas-error-fix-1.21 branch April 16, 2026 05:00
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.

2 participants