Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2842

optimize the finish() of Send/RecvWorker in QuorumCnxManager and remove testInitiateConnection() and formates some codes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Won't Do
    • None
    • None
    • quorum

    Description

      1.the finish() of Send/RecvWorker in QuorumCnxManager changes to double-checked lock style https://en.wikipedia.org/wiki/Double-checked_locking
      ,a trivial code changes implement a smaller granularity lock to have a better perfermance in too fierce multithread situation.
      2.testInitiateConnection() is redundant test function which is only used in TestCase,so I refactor it.
      3.some codes don't abide to Java Programme Specification ,so I lift a finger to format them

      Attachments

        Activity

          People

            Unassigned Unassigned
            maoling Ling Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m