Skip to content

Fixes watch conflict handling in informer and more test coverage #522

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

Conversation

yue9944882
Copy link
Member

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 7, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 7, 2019
@yue9944882 yue9944882 force-pushed the chore/integration-test-informer branch from 0a4b690 to afa4671 Compare March 7, 2019 07:05
@yue9944882 yue9944882 changed the title Integration test, more test for informer More test coverage for informer Mar 7, 2019
@yue9944882 yue9944882 force-pushed the chore/integration-test-informer branch from afa4671 to 0ec1855 Compare March 7, 2019 09:16
@@ -99,7 +99,7 @@ public void run() {
return;
}
log.error("{}#Watch failed as {} unexpected", apiTypeClass, t.getMessage(), t);
continue;
return;
Copy link
Member Author

@yue9944882 yue9944882 Mar 7, 2019

Choose a reason for hiding this comment

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

the first bug uncovered by conflicting watch event

when a event arrives w/ ERROR type, the reflector should started another round of listing but it's now keeping retrying watch. the bug happens when the event is resourceVersion confliction error, the watch will always be failing b/c it requests w/ an outdated resourceVersion. should return in this case, so that it can fetches the latest resourceVersion by re-listing

/cc @brendandburns

@yue9944882 yue9944882 force-pushed the chore/integration-test-informer branch from 0ec1855 to c838490 Compare March 7, 2019 09:28
@yue9944882 yue9944882 changed the title More test coverage for informer Fixes watch conflict handling in informer and more test coverage Mar 7, 2019
@brendandburns
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, yue9944882

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 7, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5c25e1e into kubernetes-client:master Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants