| commit | 3e56d81b808620a2ee04889cd282e2d248028efe | [log] [tgz] |
|---|---|---|
| author | ChanHo Lee <chanholee@apache.org> | Tue Nov 11 21:49:07 2025 +0900 |
| committer | GitHub <noreply@github.com> | Tue Nov 11 21:49:07 2025 +0900 |
| tree | bdd567b4a67e3044a1eabf36636de9788dc22512 | |
| parent | 66b1617c5b7053ae65551a247eea501222c3cf4c [diff] |
[ZEPPELIN-6375] Add auto-reconnect for abnormal WebSocket closures in new UI ### What is this PR for? This PR adds automatic WebSocket reconnection for non-normal connection closures to the Angular UI (`zeppelin-web-angular`), matching the behavior of the legacy AngularJS UI. Previously, when the WebSocket connection was closed abnormally (e.g., due to network issues, server timeouts, or browser tab throttling), the Angular UI would not attempt to reconnect, leaving users with a broken connection and requiring a manual page refresh. This fix monitors WebSocket close events and automatically reconnects when the close code is not 1000 (Normal Closure). ### What type of PR is it? Bug Fix ### Todos * [x] - Add reconnection logic for non-normal close codes ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-6375 - Another related issue: https://issues.apache.org/jira/browse/ZEPPELIN-6374 ### How should this be tested? 1. Start Zeppelin server locally 2. Open a notebook in the new UI 3. Test abnormal closure scenarios: - e.g., **Tab throttling**: Leave the tab inactive for 2+ minutes (If you could watch the logs for `ZeppelinServer`, then you could check the timeout disconnect right away.). 4. Verify that: - WebSocket automatically reconnects after idle timeout. - Console shows "WebSocket closed unexpectedly. Reconnecting...". - Notebook operations work after reconnection and connection status icon remain green color. ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5116 from tbonelee/fix-websocket. Signed-off-by: ChanHo Lee <chanholee@apache.org>
Documentation: User Guide
Mailing Lists: User and Dev mailing list
Continuous Integration:
Contributing: Contribution Guide
Issue Tracker: Jira
License: Apache 2.0
Zeppelin, a web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more.
Core features:
To know more about Zeppelin, visit our web site https://zeppelin.apache.org
Please go to install to install Apache Zeppelin from binary package.
Please check Build from source to build Zeppelin from source.