-
Notifications
You must be signed in to change notification settings - Fork 2k
Fixes reflector list expiration #1543
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
Fixes reflector list expiration #1543
Conversation
@brendandburns i suppose we should pick this back to 10 and 11 release, on which branch should open the cherry-picking pull? |
@yue9944882: GitHub didn't allow me to request PR reviews from the following users: tony-clarke-amdocs. Note that only kubernetes-client members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
61e8d4d
to
013a9b7
Compare
/lgtm |
@tony-clarke-amdocs: changing LGTM is restricted to collaborators In response to this:
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. |
Master is beyond 11.0 now right (it has the breaking changes in the time API)? So we need to bump master to 12.0.0-SNAPSHOT and backport this change to 11.0 (at least). |
/lgtm |
[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 |
The right branches are Thanks! |
.thenReturn( | ||
new V1PodList().metadata(new V1ListMeta().resourceVersion(expectedResourceVersion))); | ||
// constantly failing watches will make the reflector run only one time | ||
when(listerWatcher.watch(any())).thenThrow(new ApiException(HttpURLConnection.HTTP_GONE, "")); |
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.
What about the scenario wherein this API returns responseCode 200 but the body has an event that has status.code=410 ?
https://github.com/kubernetes-client/java/pull/1611/files#diff-31beacc81d066c2ab68de67a3587fee7bd7ef10d9ba42dc0a180b621751c6bffR226
Fixes: #1533