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

   gcsio.py contains some code to cache new instances per thread:
     
   ```
   
   local_state = threading.local()
   if getattr(local_state, 'gcsio_instance', None) is None:
   
   ```
   
   However, since local_state is always a newly created thread-local storage, 
this property will never be set.
   
   To get the intended effect, a global threading.local() instance should be 
stored on the class or module level.
   
   Imported from Jira 
[BEAM-5206](https://issues.apache.org/jira/browse/BEAM-5206). Original Jira may 
contain additional context.
   Reported by: hakon.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to