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: Send Possibly Stale Object on Broken WatchConn to Keep Meshery in Sync #102

Merged
merged 2 commits into from
Jan 17, 2022

Conversation

humblenginr
Copy link
Member

@humblenginr humblenginr commented Jan 13, 2022

Description

Currently, when the informer(reflector component to be specific) performs re-listing because of a broken watch connection, Meshery won't get some delete events because the obj will be of type DeletedFinalStateUnknown in those cases.

This PR ensures that we don't lose a Delete event when the watch connection established by the informer breaks for some reason, by sending a possibly stale object rather than not sending anything at all.

Notes for Reviewers

This may be the reason for #90 and probably related to #100 although I highly doubt that because it is more likely that it's because of the way the clients are handling the events.

Signed commits

  • Yes, I signed my commits.

@welcome
Copy link

welcome bot commented Jan 13, 2022

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Layer5 Community Welcome Guide and sure to join the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

Signed-off-by: suod-NithishKarthik <[email protected]>
@humblenginr humblenginr changed the title fix: Send possibly stale data in edge case to keep meshery in sync fix: Send possibly stale data on broken watch to keep meshery in sync Jan 13, 2022
@humblenginr humblenginr changed the title fix: Send possibly stale data on broken watch to keep meshery in sync fix: Send Possibly Stale Object on Broken WatchConn to Keep Meshery in Sync Jan 13, 2022
@humblenginr humblenginr changed the title fix: Send Possibly Stale Object on Broken WatchConn to Keep Meshery in Sync Fix: Send Possibly Stale Object on Broken WatchConn to Keep Meshery in Sync Jan 13, 2022
@leecalcote
Copy link
Member

@Utkarsh-pro please review.

@leecalcote
Copy link
Member

@Utkarsh-pro a review would be great....

@leecalcote leecalcote merged commit 1c9ac67 into master Jan 17, 2022
@leecalcote leecalcote deleted the nithish/fix/fallback_on_watchErr branch January 17, 2022 21:17
@welcome
Copy link

welcome bot commented Jan 17, 2022

Thanks for your contribution to the Layer5 community! 🎉

Congrats!

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.

2 participants