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/09/07 08:12:55 UTC

[GitHub] [beam] scwhittle opened a new issue, #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

scwhittle opened a new issue, #23063:
URL: https://github.com/apache/beam/issues/23063

   ### What happened?
   
   The following error is encountered when using BQ sink, causing pipeline performance to suffer.
   
   java.lang.IllegalStateException
   at org.apache.beam.sdk.util.Preconditions.checkStateNotNull(Preconditions.java:452)
   at org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords$WriteRecordsDoFn$DestinationState.lambda$retrieveErrorDetails$4(StorageApiWriteUnshardedRecords.java:375)
   at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
   
   The code is expecting that when RetryManager calls the onError function with the list of operations that every operation had an error.  If a Context does not have an error the above exception is thrown because it is null.
   https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java#L356
   
   That doesn't seem to be the case because the RetryManager passes the context for all of the operations to the error handler.
   https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/RetryManager.java#L264
   
   This doesn't seem thread-safe because the later operations in the list have not yet been awaited on. They may not have been completed, they may have completed successfully, or may have completed with an error.
   It seems like either everything should be awaited on before evaluating the retry and errors.  Or perhaps only the current awaited operation with an error should be passed to the error handler.
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: io-java-gcp


-- 
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.apache.org

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


[GitHub] [beam] TheNeuralBit closed issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

Posted by GitBox <gi...@apache.org>.
TheNeuralBit closed issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords
URL: https://github.com/apache/beam/issues/23063


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


[GitHub] [beam] johnjcasey commented on issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

Posted by GitBox <gi...@apache.org>.
johnjcasey commented on issue #23063:
URL: https://github.com/apache/beam/issues/23063#issuecomment-1242492747

   @ahmedabu98 do you have context for the BQ retrymanager?


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


[GitHub] [beam] scwhittle commented on issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

Posted by GitBox <gi...@apache.org>.
scwhittle commented on issue #23063:
URL: https://github.com/apache/beam/issues/23063#issuecomment-1244990005

   .take-issue


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


[GitHub] [beam] ahmedabu98 commented on issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

Posted by GitBox <gi...@apache.org>.
ahmedabu98 commented on issue #23063:
URL: https://github.com/apache/beam/issues/23063#issuecomment-1242509557

   This is unfamiliar to me


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


[GitHub] [beam] scwhittle commented on issue #23063: [Bug]: IllegalStateException in org.apache.beam.sdk.io.gcp.bigquery.StorageApiWriteUnshardedRecords

Posted by GitBox <gi...@apache.org>.
scwhittle commented on issue #23063:
URL: https://github.com/apache/beam/issues/23063#issuecomment-1239058971

   @reuvenlax @johnjcasey 


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