Closed dockerzhang closed 3 years ago
Because the core module uses jdk1.7, this code cannot use 'putIfAbsent'
addrMap4Failover.putIfAbsent(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
We should use the original
if (addrMap4Failover.get(tmpNodeAddrInfo.getHostPortStr()) == null) { addrMap4Failover.put(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo); }
JIRA link - [INLONG-102] created by viviel
Because the core module uses jdk1.7, this code cannot use 'putIfAbsent'
We should use the original
JIRA link - [INLONG-102] created by viviel