stankiewicz commented on PR #38149: URL: https://github.com/apache/beam/pull/38149#issuecomment-4254276726
if we keep cache per VM, there are two options: 1. we shouldn't close catalog on teardown 2. if there is good reason to teardown catalog, it should also wait until all other doFns are not using catalog, so it can safely flush cache and null catalog. One solution is to introduce ReentrantReadWriteLock where write lock is used when you want to recycle and read lock is used to fetch catalog. -- 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]
