Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

WatchConnectionManager closes when k8s master restarts #588

Open
duyanghao opened this issue Dec 29, 2017 · 0 comments
Open

WatchConnectionManager closes when k8s master restarts #588

duyanghao opened this issue Dec 29, 2017 · 0 comments

Comments

@duyanghao
Copy link

duyanghao commented Dec 29, 2017

WatchConnectionManager will always close itself when I restart k8s api server.How will it affect spark running application?

step1: kill k8s api server + scheduler + controller_manager
step2: stop for a moment
step3: restart the k8s api server + scheduler + controller_manager

the WatchConnectionManager will always close itself even though it has reconnected successfully as below:

2018-01-02 11:32:26 DEBUG WatchConnectionManager: Connecting websocket ... io.fabric8.kubernetes.client.dsl.internal.WatchConnectionMan
ager@1ba05e38
2018-01-02 11:32:26 DEBUG WatchConnectionManager: WebSocket successfully opened
2018-01-02 11:32:26 DEBUG KubernetesClusterSchedulerBackend: Executor pod watch closed.
io.fabric8.kubernetes.client.KubernetesClientException: too old resource version: 74322460 (74322904)
        at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$2.onMessage(WatchConnectionManager.java:226)
        at okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:307)
        at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:222)
        at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101)
        at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262)
        at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2018-01-02 11:32:26 DEBUG WatchConnectionManager: Force closing the watch io.fabric8.kubernetes.client.dsl.internal.WatchConnectionMana
ger@1ba05e38
2018-01-02 11:32:26 DEBUG WatchConnectionManager: Ignoring duplicate firing of onClose event
2018-01-02 11:32:26 DEBUG WatchConnectionManager: WebSocket close received. code: 1000, reason:
2018-01-02 11:32:26 DEBUG WatchConnectionManager: Ignoring onClose for already closed/closing websocket

I am afraid that the close of WatchConnectionManager will affect spark running application.And it has now confirmed the close of Executor pod watch.

@duyanghao duyanghao changed the title spark application fails when k8s master restarts WatchConnectionManager closes when k8s master restarts Jan 2, 2018
@duyanghao duyanghao reopened this Jan 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant