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

Avoid deleting all endpoints when a watch fails #6979

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

jingqgeng
Copy link
Contributor

Description

Currently, whenever a watch fails, a new snapshot is loaded and we want to check if the endpoint ids in the old snapshot still exist in the new snapshot. But instead of looking up each endpoint id, this line of code looks up the set of endpoint ids, which will never work. Hence this bug fix.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@jingqgeng jingqgeng requested a review from a team as a code owner November 10, 2022 02:09
@marvin-tigera marvin-tigera added this to the Calico v3.25.0 milestone Nov 10, 2022
@marvin-tigera marvin-tigera added docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small) labels Nov 10, 2022
@CLAassistant
Copy link

CLAassistant commented Nov 10, 2022

CLA assistant check
All committers have signed the CLA.

@caseydavenport
Copy link
Member

@neiljerram would you be able to do a quick review of this one?

@mgleung
Copy link
Contributor

mgleung commented Dec 19, 2022

/sem-approve

@mgleung mgleung merged commit f5f0a69 into projectcalico:master Jan 6, 2023
@mgleung mgleung added docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact labels Jan 6, 2023
@marvin-tigera marvin-tigera removed release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Jan 6, 2023
nelljerram added a commit to nelljerram/calico that referenced this pull request Jan 17, 2023
We had a bug in product code that was recently fixed by
projectcalico#6979.  That bug caused some port statuses to be
signalled as "None" when they should not be.

Unfortunately we also had this test (test_snapshot) that had been coded to match the bug, i.e. to
expect a port status update of "None".  The correct behaviour is that the port status should not be
changed by this passage of test code.

This was missed at the time of the 6979 PR because our UT running had a bug that allowed some tests
to fail but still reported success overall.
nelljerram added a commit to nelljerram/calico that referenced this pull request Sep 19, 2023
We had a bug in product code that was recently fixed by
projectcalico#6979.  That bug caused some port statuses to be
signalled as "None" when they should not be.

Unfortunately we also had this test (test_snapshot) that had been coded to match the bug, i.e. to
expect a port status update of "None".  The correct behaviour is that the port status should not be
changed by this passage of test code.

This was missed at the time of the 6979 PR because our UT running had a bug that allowed some tests
to fail but still reported success overall.
odilo pushed a commit to odilo/networking-calico that referenced this pull request Jul 9, 2024
We had a bug in product code that was recently fixed by
projectcalico/calico#6979.  That bug caused some port statuses to be
signalled as "None" when they should not be.

Unfortunately we also had this test (test_snapshot) that had been coded to match the bug, i.e. to
expect a port status update of "None".  The correct behaviour is that the port status should not be
changed by this passage of test code.

This was missed at the time of the 6979 PR because our UT running had a bug that allowed some tests
to fail but still reported success overall.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants