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

Remove synchronized block from MasterServiceStubMaker#releaseZooKeeperWatcher()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.98.17
    • None
    • None
    • Reviewed

    Description

      This is a follow up to HBASE-11460

      elserj 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

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

              Dates

                Created:
                Updated:
                Resolved: