You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "RustedBones (via GitHub)" <gi...@apache.org> on 2023/09/01 07:05:02 UTC

[GitHub] [beam] RustedBones opened a new issue, #28279: [Bug]: Concurrency issue when using addLogicalTypeConversions on avro model data

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

   ### What happened?
   
   Since beam `2.48` after #26320, we can see the following exception
   
   ```log
   "java.lang.NullPointerException
   	at org.apache.avro.generic.GenericData.addLogicalTypeConversion(GenericData.java:116)
   	at org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.addLogicalTypeConversions(AvroUtils.java:169)
   	at org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory$ReflectDatumFactory.apply(AvroDatumFactory.java:188)
   	at org.apache.beam.sdk.extensions.avro.io.AvroIO$Sink.open(AvroIO.java:2126)
   	at org.apache.beam.sdk.extensions.smb.FileOperations$Writer.prepareWrite(FileOperations.java:219)
   	at org.apache.beam.sdk.extensions.smb.FileOperations$Writer.access$100(FileOperations.java:206)
   	at org.apache.beam.sdk.extensions.smb.FileOperations.createWriter(FileOperations.java:133)
   ```
   
   Either in the `AvroIO` or in the `AvroCoder`.
   This seems to happen due to a concurrency access on the same `GenericData` (During initialization of the datum reader and writer, there is a high chance for avro returning the singleton instance).
   
   The `ReflectDatumFactory` should avoid concurrent access to avro's model data.
   
   
   
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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] mosche closed issue #28279: [Bug]: Concurrency issue when using addLogicalTypeConversions on avro model data

Posted by "mosche (via GitHub)" <gi...@apache.org>.
mosche closed issue #28279: [Bug]: Concurrency issue when using addLogicalTypeConversions on avro model data 
URL: https://github.com/apache/beam/issues/28279


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