Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated ClientComplete to do nothing if node is already complete #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keithwiersema
Copy link
Collaborator

This is to remedy an issue where multiple ClientComplete events can cause invalid transitions on the server state. Instead of attempting the transition, ignore these messages if the node is already complete (this is how it is handled in NodeComplete).

@wlapham
Copy link

wlapham commented Sep 28, 2017

🥇

@Nayshins
Copy link

LGTM

@minostro
Copy link
Collaborator

@keithwiersema Do we know why this is happening? should we at least log these events?

@keithwiersema keithwiersema force-pushed the do-nothing-if-node-already-complete branch from c26941f to 8128a01 Compare October 3, 2017 15:40
@keithwiersema
Copy link
Collaborator Author

@minostro updated to include logging when this occurs. We believe this may be a race condition where redis is double-processing events - as a stop gap, I propose that we make the ClientComplete status idempotent to get rid of the noise we are getting in our system.

@keithwiersema keithwiersema force-pushed the do-nothing-if-node-already-complete branch from 8128a01 to 773a511 Compare October 3, 2017 15:52
@minostro
Copy link
Collaborator

minostro commented Oct 6, 2017

@keithwiersema I have a conflicting view on this problem. If the team is not 100% sure of what's going on, I would advise against making changes to the open source version of Backbeat. Instead, I would make changes in the private repo the team has for it, so experimentation can be done faster without impacting any other teams who are using the public version. Unfortunately, I don't have the time and the context to add any significant value to this discussion. I'll lean on @sydneycodes who is the last person which I know had context on Backbeat.

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.

4 participants