-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add check for endpoint counts equal #1836
Conversation
Hi @sawsa307. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @swetharepakula |
1c999ef
to
be21ad2
Compare
/ok-to-test |
What does the syncer does in error state? Because it seems it just reset the value , so we just flip the state, or am I missing something? |
When the syncer is in error state, we will do degraded mode procedures, which we will redo endpoint calculations and send attach/detach calls with correct endpoint information. |
0ca0398
to
2b88427
Compare
ah, but that is in a follow up right? I can't see how it is done here 😄 |
Yes you're right. For now we reset the inError boolean so it is a no-op, but in the future when we implement the degraded mode functionality(which will be in a separate PR), it will be used to trigger degraded mode if the syncer is in error state. |
2b88427
to
03b540d
Compare
03b540d
to
7a08823
Compare
f618819
to
965cd0e
Compare
965cd0e
to
43a49ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple nits. Otherwise lgtm!
/approve
9101e17
to
ed35cb7
Compare
Add check to make sure the total number of endpoints from endpointData/EPS equals to the number of endpoints from endpointPodMap. If not, the syncer will enter the error state. EndpointData may contain duplicated endpoint, but endpointPodMap removes duplicated endpoints, and dupCount stores the number of duplicated it removed. We compare the endpoint counts with duplicates. Change the function definition of NetworkEndpointsCalculator.CalculateEndpoints() to return another variable that represents the count of duplicated endpoints.
ed35cb7
to
a8cfc83
Compare
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sawsa307, swetharepakula The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add check to make sure the total number of endpoints from EndpointDataequals to the number of endpoints from endpointPodMap. If not, the syncer will enter the error state.
EndpointData may contain duplicated endpoint, but endpointPodMap removes the duplicated endpoints, and dupCount stores the number of duplicated it removed. We compare the endpoint counts with duplicates.
Change the function definition of NetworkEndpointsCalculator.CalculateEndpoints() to return another variable that represents the count of duplicated endpoints.