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

io.fabric8.kubernetes.client.KubernetesClientException: too old resource version #2768

Closed
johnhec opened this issue Feb 1, 2021 · 2 comments
Labels
question status/stale Waiting on feedback Issues that require feedback from User/Other community members

Comments

@johnhec
Copy link

johnhec commented Feb 1, 2021

Experiencing repeated "too old resource version" onClose() exceptions in a Watcher object. The resource being watched, a Job, runs for several hours but (typically) after 80-100 minutes I always encounter a "too old resource version" exception. I re-create the Watch object, but after another period (35 minutes in one case) I encounter another "too old resource version" exception.

I keep re-creating the Watch object until the underlying Job completes.

The exception stack is as follows:

2021-01-26 06:28:17 ERROR EngineWatcher:87 - too old resource version: 51780364 (52677017)
io.fabric8.kubernetes.client.KubernetesClientException: too old resource version: 51780364 (52677017)
at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$1.onMessage(WatchConnectionManager.java:257)
at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:323)
at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:219)
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:105)
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274)
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

What is the cause of this problem and how can I solve it

@rohanKanojia
Copy link
Member

#1800 (comment)

@manusa manusa added question Waiting on feedback Issues that require feedback from User/Other community members labels Feb 8, 2021
@stale
Copy link

stale bot commented May 9, 2021

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale label May 9, 2021
@stale stale bot closed this as completed May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question status/stale Waiting on feedback Issues that require feedback from User/Other community members
Projects
None yet
Development

No branches or pull requests

3 participants