Skip to content

Commit b7c5d2a

Browse files
author
S O'Donnell
committed
Added findbugs ignore annotation
1 parent 7e99565 commit b7c5d2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.concurrent.ScheduledFuture;
3333
import java.util.stream.Collectors;
3434

35+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3536
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
3637
import org.apache.hadoop.hdds.protocol.DatanodeDetails;
3738
import org.apache.hadoop.hdds.protocol.proto.HddsProtos.NodeState;
@@ -284,6 +285,9 @@ public RegisteredCommand register(
284285
* @param dnsName String representing the hostname or IP of the node
285286
* @param uuid String representing the UUID of the registered node.
286287
*/
288+
@SuppressFBWarnings(value="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION",
289+
justification="The method is synchronized and this is the only place "+
290+
"dnsToUuidMap is modified")
287291
private synchronized void addEntryTodnsToUuidMap(
288292
String dnsName, String uuid) {
289293
Set<String> dnList = dnsToUuidMap.get(dnsName);

0 commit comments

Comments
 (0)