You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Ma77Ball (via GitHub)" <gi...@apache.org> on 2026/06/14 16:09:36 UTC

[I] Replace fixed Thread.sleep calls in SyncExecutionResource with a bounded result-readiness poll [texera]

Ma77Ball opened a new issue, #5713:
URL: https://github.com/apache/texera/issues/5713

   ### Task Summary
   The synchronous execution endpoint (`SyncExecutionResource::executeWorkflowSync`) uses two unconditional `Thread.sleep(500)` calls to wait for the result writer to flush before reading results, adding ~1s of latency to every run. The engine already commits the result writer (via the worker's blocking `writerThread.join()`) before an operator's `COMPLETED` state becomes observable, so the data is on disk by the time we read it. Replace both sleeps with a bounded readiness-poll that compares each target operator's committed result-storage count against its expected output count from stats, with early-exit and a short timeout cap.
   ### Task Type
   - [x] Performance


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Replace fixed Thread.sleep calls in SyncExecutionResource with a bounded result-readiness poll [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5713:
URL: https://github.com/apache/texera/issues/5713#issuecomment-4702312229

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @Ma77Ball!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org