You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/15 16:19:44 UTC

[GitHub] [beam] Abacn commented on issue #22299: [Bug]: JDBCIO Write freeze at getConnection() in WriteFn

Abacn commented on issue #22299:
URL: https://github.com/apache/beam/issues/22299#issuecomment-1185697215

   A possible cause is that a racing condition could occur here:
   https://github.com/apache/beam/blob/2f13855aff620f0df020aead22e5d14ccab0f85e/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java#L2323
    getConnection() gets called by many process element at the same time, with connection == null, and all of them trying to establish the dataSource.getConnection at the same time. Marking this async may solve the issue.
   
   However, verifying this is blocked by broken JdbcIOIT, where the fix is currently in progress (#21796)


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