You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "arunpandianp (via GitHub)" <gi...@apache.org> on 2025/04/04 22:11:40 UTC

[PR] [Dataflow Streaming] Don't share windmill stream pools between different commit threads [beam]

arunpandianp opened a new pull request, #34546:
URL: https://github.com/apache/beam/pull/34546

   
   When commit threads share the same windmill stream pool, multiple threads can end up using the same commit stream and it can become a bottleneck.
   


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] [Dataflow Streaming] Don't share windmill stream pools between different commit threads [beam]

Posted by "arunpandianp (via GitHub)" <gi...@apache.org>.
arunpandianp commented on code in PR #34546:
URL: https://github.com/apache/beam/pull/34546#discussion_r2029494437


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/client/commits/StreamingEngineWorkCommitter.java:
##########
@@ -174,19 +175,18 @@ private void streamingCommitLoop() {
           continue;
         }
 
-        try (CloseableStream<CommitWorkStream> closeableCommitStream =
-                commitWorkStreamFactory.get();
-            CommitWorkStream.RequestBatcher batcher = closeableCommitStream.stream().batcher()) {
+        try (CommitWorkStream.RequestBatcher batcher = closeableCommitStream.stream().batcher()) {
           if (!tryAddToCommitBatch(initialCommit, batcher)) {
             throw new AssertionError("Initial commit on flushed stream should always be accepted.");
           }
           // Batch additional commits to the stream and possibly make an un-batched commit the
           // next initial commit.
           initialCommit = expandBatch(batcher);
-        } catch (Exception e) {
-          LOG.error("Error occurred sending commits.", e);

Review Comment:
   stream timeouts were getting caught here, now they will not be caught. Thinking if we should handle it differently, is it safe to suppress these exceptions?



-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] [Dataflow Streaming] Don't share windmill stream pools between different commit threads [beam]

Posted by "arunpandianp (via GitHub)" <gi...@apache.org>.
arunpandianp closed pull request #34546: [Dataflow Streaming] Don't share windmill stream pools between different commit threads
URL: https://github.com/apache/beam/pull/34546


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] [Dataflow Streaming] Don't share windmill stream pools between different commit threads [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #34546:
URL: https://github.com/apache/beam/pull/34546#issuecomment-2779812567

   Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment `assign set of reviewers`


-- 
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: github-unsubscribe@beam.apache.org

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


Re: [PR] [Dataflow Streaming] Don't share windmill stream pools between different commit threads [beam]

Posted by "arunpandianp (via GitHub)" <gi...@apache.org>.
arunpandianp commented on PR #34546:
URL: https://github.com/apache/beam/pull/34546#issuecomment-2779811406

   R: @scwhittle 


-- 
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: github-unsubscribe@beam.apache.org

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