Repository navigation
Fixes #8327: Keep ServerPushSession active in Hop Web so logging refresh does not stall - #8344
Merged
mattcasters merged 1 commit intoSep 13, 2026
Merged
Conversation
…g refresh does not stall
mattcasters
self-requested a review
September 12, 2026 20:36
mattcasters
approved these changes
Sep 12, 2026
mattcasters
left a comment
Contributor
There was a problem hiding this comment.
Summary & Root Cause Analysis
In Hop Web (running Eclipse RAP in the browser), background UI updates triggered via Display.asyncExec(...) (or syncExec(...)) are held on the server and are only pushed to the browser client when a ServerPushSession is actively running. Without an active push session, updates are buffered until the user performs an explicit UI interaction (click, keystroke, window resize) that initiates a client request/response cycle.
Prior to this PR:
- Mislocated & Premature Teardown: In
HopGuiPipelineGraph.javaandHopGuiWorkflowGraph.java,ServerPushSessionFacade.start()was invoked, and immediately after callingexecutePipeline(...)/executeWorkflow(...),ServerPushSessionFacade.stop()was called.executePipeline()andexecuteWorkflow()only launch execution asynchronously in background threads and return immediately.- Calling
stop()right away tore down the server push channel while the pipeline/workflow was actively running. - In
HopGuiPipelineGraph,stop()was only called ifpipelineMeta.isShowDialog()was false, leaving the push state inconsistent depending on how the pipeline was launched.
- Singleton Session Scope: In
rap,ServerPushSessionFacadeImplusesSingletonUtil.getSessionInstance(ServerPushSession.class). Stopping it anywhere deactivates push for the entire web session. - Impact: Background timers and listeners—specifically
HopGuiLogBrowser's 1-second refresh timer, execution status icon redraws, and metrics table refreshers—stalled in Hop Web until the user manually interacted with the UI (Issue #8327).
Detailed Review of Changes
1. HopWebEntryPoint.java
- Change:
Starts server push increateContents():and updates the log message inServerPushSessionFacade.start();
beforeDestroy():LogChannel.UI.logError( "Error stopping notifications and server push on session end", e);
- Evaluation:
- Correct Lifecycle: Hop Web is an interactive IDE in the browser with continuous background updates throughout a user session (log streaming, transform/action status badges, execution metrics, and notification polling). Tying
ServerPushSessionto the user'sUISessionlifecycle (createContents->beforeDestroy) is the standard and correct Eclipse RAP pattern. - Resource Management: RAP manages server push via one standing push request (long-poll/WebSocket) per active client session. When the browser tab is closed or the session expires,
beforeDestroy()cleans it up alongside notification services and VFS namespaces.
- Correct Lifecycle: Hop Web is an interactive IDE in the browser with continuous background updates throughout a user session (log streaming, transform/action status badges, execution metrics, and notification polling). Tying
2. HopGuiPipelineGraph.java & HopGuiWorkflowGraph.java
- Change:
- Removed
ServerPushSessionFacade.start()andstop()fromHopGuiPipelineGraph.start(). - Removed
ServerPushSessionFacade.start()andstop()fromHopGuiWorkflowGraph.start()andstartWorkflowHere(). - Removed unused imports of
ServerPushSessionFacade.
- Removed
- Evaluation:
- Clean and complete removal. Eliminates the false assumption that execution was synchronous with
executePipeline(...)/executeWorkflow(...). - Zero regression risk on desktop Hop (RCP), where
ServerPushSessionFacadeImplis a no-op dummy.
- Clean and complete removal. Eliminates the false assumption that execution was synchronous with
Minor Observation (Non-blocking)
- Redundant call in
NotificationSystemInitializer.java:114:NotificationSystemInitializerstill callsServerPushSessionFacade.start();.- Because
ServerPushSession.start()on the same instance is idempotent in Eclipse RAP ("If the session is already running, this method does nothing"), leaving it here causes no harm. - Since
HopWebEntryPointnow unconditionally starts server push for the entire Hop Web session, this call is redundant and could either be left as defensive redundancy or cleaned up later.
Conclusion
This PR is surgically focused, well-documented, and accurately resolves the stalled logging and background UI refresh problem in Hop Web. LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8327
Problem
In Hop Web (running via Eclipse RAP in the browser), background UI updates triggered via
Display.asyncExec(...)(such as log lines fromHopGuiLogBrowser's 1-second refresh timer) are buffered on the server and never delivered to the client browser unless an activeServerPushSessionis running.Previously:
HopGuiPipelineGraphandHopGuiWorkflowGraph,ServerPushSessionFacade.stop()was invoked prematurely immediately after kicking off the execution delegate, terminating server push while execution was actively running in the background.Solution
HopWebEntryPoint, invokeServerPushSessionFacade.start()upon session startup so server push remains active throughout the Hop Web user session. Clean shutdown is already handled during session destruction (beforeDestroy).ServerPushSessionFacade.stop()calls fromHopGuiPipelineGraphandHopGuiWorkflowGraph.