Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15080

Remove synchronized block from MasterServiceStubMaker#releaseZooKeeperWatcher()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.17
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This is a follow up to HBASE-11460

      Josh Elser found that in 0.98, the synchronized block below should have been taken out (as was done for branch-1 +):

            synchronized (masterAndZKLock) {
              if (keepAliveZookeeperUserCount.decrementAndGet() <= 0 ){
      

      keepAliveZookeeperUserCount is an AtomicInteger. There is no need for the synchronized block.

      This issue is to remove the synchronized block.

        Attachments

        1. 15080-0.98.txt
          0.8 kB
          Ted Yu

          Issue Links

            Activity

              People

              • Assignee:
                yuzhihong@gmail.com Ted Yu
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: