File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3232import java .util .concurrent .ScheduledFuture ;
3333import java .util .stream .Collectors ;
3434
35+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
3536import org .apache .hadoop .hdds .conf .OzoneConfiguration ;
3637import org .apache .hadoop .hdds .protocol .DatanodeDetails ;
3738import 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 );
You can’t perform that action at this time.
0 commit comments