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

fix(states): add REFRESHING state to avoid deregistration skew and cancellations #100

Merged

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Apr 15, 2023

Fixes #99
Fixes #90

Copy link
Member

@tthvo tthvo left a comment

Choose a reason for hiding this comment

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

Looks good to me! Lately, I have been seeing the agent disappearing and re-appearing frequently. Looks like its fixed here too^^

@andrewazores
Copy link
Member Author

Yea, that's the other side of the same problem I was looking to fix here. The description of the agent fully deregistering and re-registering when it gets the ping signal not only causes its harvest timer to reset, but it also means the Cryostat server sees the Agent's discovery subtree (singleton of only itself) being removed, then re-created empty, and finally an identical node re-appearing as the singleton leaf.

@andrewazores andrewazores merged commit eaa8653 into cryostatio:main Apr 17, 2023
@andrewazores andrewazores deleted the registration-refresh-state branch April 17, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
2 participants