neils-dev commented on a change in pull request #2901:
URL: https://github.com/apache/ozone/pull/2901#discussion_r791261919
##########
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:
Alright, looks good thanks. I put back previous atomic `compareAndSet`
for `isRunning` boolean and placed it _after_ the exception generating address
lookup call. Changes reflected in latest commit update.
--
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]