boyuanzz commented on a change in pull request #11627:
URL: https://github.com/apache/beam/pull/11627#discussion_r421155093
##########
File path: sdks/python/apache_beam/utils/subprocess_server.py
##########
@@ -161,8 +161,9 @@ class JavaJarServer(SubprocessServer):
BEAM_GROUP_ID = 'org.apache.beam'
JAR_CACHE = os.path.expanduser("~/.apache_beam/cache/jars")
- _BEAM_SERVICES = threading.local()
- _BEAM_SERVICES.replacements = {}
+ _BEAM_SERVICES = _BEAM_SERVICES = type(
Review comment:
Additional `_BEAM_SERVICES`?
It seems like creating a subclass of `threading.local()` would work in this
case. Why `type` also works?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]