Skip to content

Conversation

@aminjam
Copy link
Contributor

@aminjam aminjam commented May 20, 2020

When a cell loses presence and tries to claim an LRP that it owns, we want to ignore the request and let convergence etc. properly take action to right the ship. If we let the suspect cell claim a suspect LRP, it causes any replacement UNCLAIMED ORDINARY LRP (which has the same key) to be updated and transition to CLAIMED ORDINARY (and be claimed by the suspect cell).

This causes there to be 2 LRPs with the same key and instance key, but different presences. When a subsequent Start request comes in from the suspect cell for the suspect LRP, it is not ignored as intended, but instead the replacement LRP that was erroneously moved to CLAIMED is transitioned to RUNNING.

This then causes the CLAIMED SUSPECT LRP to be removed, generating an unexpected actual_lrp_removed event.

Address: cloudfoundry/bbs#42

Submodule src/code.cloudfoundry.org/bbs fa06428..9c1884f:
  > Ensure claim LRP request for suspect LRP is ignored

Resolves cloudfoundry/bbs#42

Co-authored-by: Sunjay Bhatia <[email protected]>
@aminjam aminjam added the bug label May 20, 2020
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@aminjam aminjam merged commit 727213a into develop May 20, 2020
@sunjayBhatia sunjayBhatia deleted the fix-claim-suspect-lrp branch August 18, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants