Apache9 commented on pull request #2463: URL: https://github.com/apache/hbase/pull/2463#issuecomment-699731240
I think we'd better revist the synchronization in HBaseReplicationEndpoint. I can see the conn field is used in getReplicationSink where it is synchronized, but actually it is only used to protect sinkServers? So we can just synchroniza on sinkServers or a dedicated locking object? And we also have synchronized when accessing ZKWatcher, need to find out whether they need to use the same lock. ---------------------------------------------------------------- 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]
