You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:37:30 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #701: [INLONG-102] Fix question [TUBEMQ-101] [Optimize code]

dockerzhang opened a new issue #701:
URL: https://github.com/apache/incubator-inlong/issues/701


   <p>Because the core module uses jdk1.7, this code cannot use 'putIfAbsent'</p>
   
   <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
   <pre class="code-java">
   addrMap4Failover.putIfAbsent(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
   </pre>
   </div></div>
   
   <p>We should use the original</p>
   
   <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
   <pre class="code-java">
   <span class="code-keyword">if</span> (addrMap4Failover.get(tmpNodeAddrInfo.getHostPortStr()) == <span class="code-keyword">null</span>) {
       addrMap4Failover.put(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
   }
   </pre>
   </div></div>
   
   
   
   <p> </p>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-102">[INLONG-102]</a> created by viviel</i>


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] dockerzhang closed issue #701: [INLONG-102] Fix question [TUBEMQ-101] [Optimize code]

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #701:
URL: https://github.com/apache/incubator-inlong/issues/701


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org