Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11433

Fix the new findbugs warning from NetUtils&ActiveStandbyElector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.7.0
    • None
    • ha, net
    • Reviewed

    Description

      see https://builds.apache.org/job/PreCommit-HADOOP-Build/5309//artifact/patchprocess/newPatchFindbugsWarningshadoop-common.html :

      Correctness Warnings
      
      Code	Warning
      RV	Return value of java.util.concurrent.CountDownLatch.await(long, TimeUnit) ignored in org.apache.hadoop.ha.ActiveStandbyElector$WatcherWithClientRef.process(WatchedEvent)
      Multithreaded correctness Warnings
      
      Code	Warning
      AT	Sequence of calls to java.util.concurrent.ConcurrentHashMap may not be atomic in org.apache.hadoop.net.NetUtils.canonicalizeHost(String)
      Bug type AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION (click for details) 
      In class org.apache.hadoop.net.NetUtils
      In method org.apache.hadoop.net.NetUtils.canonicalizeHost(String)
      Type java.util.concurrent.ConcurrentHashMap
      Called method java.util.concurrent.ConcurrentHashMap.put(Object, Object)
      At NetUtils.java:[line 291]
      

      Attachments

        1. HADOOP-11433-001.txt
          2 kB
          Liang Xie

        Issue Links

          Activity

            People

              xieliang007 Liang Xie
              xieliang007 Liang Xie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: