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

Spinning on WebSocket disconnect/reconnect #341

Closed
andrewazores opened this issue Nov 22, 2021 · 0 comments · Fixed by #342
Closed

Spinning on WebSocket disconnect/reconnect #341

andrewazores opened this issue Nov 22, 2021 · 0 comments · Fixed by #342
Assignees
Labels
bug Something isn't working

Comments

@andrewazores
Copy link
Member

andrewazores commented Nov 22, 2021

I occasionally observe the web-client "spinning" and alternating between apparent WebSocket connection states, with dozens or even hundreds of WebSocket status notifications appearing (and corresponding Cryostat backend logs for WS connections/disconnections). This may occur more frequently when closing and reopening the web-client by Ctrl+w/Ctrl+Shift+t (close tab/undo close tab), but I'm not really certain.

cryostat-ws-spin-2021-11-22_11 33 17

Log excerpt:

Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/recordings 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44436): GET /api/v1/targets 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Authenticated remote client 10.0.2.100:44582
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44582":"accepted"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Disconnected remote client 10.0.2.100:44582
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44582":"disconnected"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): POST /api/v2.1/auth 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Connected remote client 10.0.2.100:44584
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44584":"connected"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/recordings 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44436): GET /api/v1/targets 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Authenticated remote client 10.0.2.100:44584
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44584":"accepted"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Disconnected remote client 10.0.2.100:44584
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44584":"disconnected"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): POST /api/v2.1/auth 200 0ms
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Connected remote client 10.0.2.100:44586
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44586":"connected"}}
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Connected remote client 10.0.2.100:44588
Nov 22, 2021 4:33:23 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598803},"message":{"10.0.2.100:44588":"connected"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/recordings 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44436): GET /api/v1/targets 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Authenticated remote client 10.0.2.100:44586
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44586":"accepted"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Disconnected remote client 10.0.2.100:44586
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44586":"disconnected"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Authenticated remote client 10.0.2.100:44588
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44588":"accepted"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): POST /api/v2.1/auth 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Disconnected remote client 10.0.2.100:44588
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44588":"disconnected"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/recordings 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/targets 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Connected remote client 10.0.2.100:44590
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44590":"connected"}}
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/recordings 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: (10.0.2.100:44438): GET /api/v1/targets 200 0ms
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Authenticated remote client 10.0.2.100:44590
Nov 22, 2021 4:33:24 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598804},"message":{"10.0.2.100:44590":"accepted"}}
Nov 22, 2021 4:33:38 PM io.cryostat.core.log.Logger info
INFO: Disconnected remote client 10.0.2.100:44590
Nov 22, 2021 4:33:38 PM io.cryostat.core.log.Logger info
INFO: Outgoing WS message: {"meta":{"category":"WsClientActivity","type":{"type":"application","subType":"json"},"serverTime":1637598818},"message":{"10.0.2.100:44590":"disconnected"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant