You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Eliaaazzz (via GitHub)" <gi...@apache.org> on 2026/01/11 06:39:52 UTC

Re: [I] [Bug]: Issue with IllegalStateException in `STORAGE_WRITE_API` method in `BigQueryIO` [beam]

Eliaaazzz commented on issue #31422:
URL: https://github.com/apache/beam/issues/31422#issuecomment-3734107609

   Hi @Arunodoy18, is there any update on PR #36877? I noticed this issue has been open for a while.
   
   I've been analyzing the stack trace and the previous attempts by @liferoad (e.g., #35576). It seems that using `synchronized` blocks previously caused performance regressions due to the high contention on `APPEND_CLIENTS` during streaming.
   
   Given that `write()` operations heavily outnumber `close()` operations, have we considered using StampedLock (Java 8+) here? Its optimistic read mode could potentially solve the `IllegalStateException` race condition without the overhead of a full `ReentrantReadWriteLock` or `synchronized` block.
   
   If the current PR is stalled, I would be interested in prototyping a solution using StampedLock or a segmented locking strategy.


-- 
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