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

Refactorings and Cleanups

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • cleanup, cleancode

    Description

      Umbrella issue for refactorings. I'll post individual refactoring steps as sub-issues. I'll also use this umbrella issue to submit previews of the full refactoring for testing by Jenkins or to ReviewBoard.

      Attachments

        1.
        Make OpCode an enum Sub-task Open Thomas Koch  
        2.
        Shorten calls to ZooTrace Sub-task Open Thomas Koch  
        3.
        Remove unnecessary MissingSessionException in ZooKeeperServer Sub-task Patch Available Thomas Koch  
        4.
        Cleanup SessionTracker Sub-task Open Unassigned  
        5.
        Cleanup FileTxnLog Sub-task Open Unassigned  
        6.
        refactor int constants in o.a.z.s.q.Leader to enum Sub-task Open Thomas Koch  
        7.
        throw RuntimeExceptions for Exceptions that "should never happen" Sub-task Open Unassigned  
        8.
        basic cleanup in LearnerHandler Sub-task Open Thomas Koch

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 10m
        9.
        store KeeperException messages in the Code enum Sub-task Patch Available Thomas Koch  
        10.
        resolve remaining compiler warnings Sub-task Open Unassigned  
        11.
        fix compiler warnings in contrib loggraph Sub-task Open Unassigned  
        12.
        multi transaction sets request.exception without reason Sub-task Open Thomas Koch  
        13.
        call checkSession at begin of PrepRequestProcessor.pRequest Sub-task Patch Available Thomas Koch  
        14.
        unused fields in DataTree.ProcessTxnResult Sub-task Open Thomas Koch  
        15.
        Rename MultiTransactionRecord to MultiRequest Sub-task Open Thomas Koch  
        16.
        Move MultiResponse creation out of FinalRequestProcessor Sub-task Patch Available Thomas Koch  
        17.
        central mapping from type to txn record class Sub-task Open Thomas Koch  
        18.
        "request.getHdr() != null" and "isQuorum" are identical Sub-task Open Thomas Koch  
        19.
        ZKDatabase should not hold reference to FileTxnSnapLog Sub-task Open Thomas Koch  
        20.
        Only SessionTracker should hold reference to sessionsWithTimeouts Sub-task Open Thomas Koch  
        21.
        Cleanup minor PrepRequestProcessor issues Sub-task Patch Available Thomas Koch  
        22.
        QuorumPeer contains unused constructor Sub-task Open Thomas Koch  
        23.
        Always log sessionId and zxid as hexadecimals Sub-task Open Unassigned  

        Activity

          People

            thkoch Thomas Koch
            thkoch Thomas Koch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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