adoroszlai commented on a change in pull request #2901:
URL: https://github.com/apache/ozone/pull/2901#discussion_r791142577
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/GrpcOmTransport.java
##########
@@ -113,7 +115,7 @@ public GrpcOmTransport(ConfigurationSource conf,
}
public void start() throws IOException {
- if (!isRunning.compareAndSet(false, true)) {
+ if (isRunning.get()) {
Review comment:
We should keep `compareAndSet` for atomic operation, but move this after
the address lookup.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]