Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3285

Remove static methods from ZooUtil and make a factory for instances.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      In fixing ACCUMULO-2727, I wanted to write a unit test to be sure we properly retry when we get a BadVersion exception.

      To get ZooKeeper to throw the exceptions I want it to, I really want to use EasyMock. However, to get mocking of static methods, I'd have to pull in PowerMock which I really don't want to do.

      We should just take ZooUtil and wrap a factory around it to make some instances (or anything else that will ultimately remove the static methods).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: