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

ZooUtil throws exception even when retry succeeds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.6.2, 1.7.0
    • zookeeper
    • None

    Description

      Saw this while examining checkstyle warnings:

      o.a.a.fate.zookeeper.ZooUtil has a static putData method which is called by other methods. In the OVERWRITE case, if an exception was caused by a timeout or other temporary, connection-related issue, it attempts to retry by calling a retryOrThrow method.

      However, even if it does end up succeeding (not throwing an exception), the case in the switch statement falls through to the default case, and throws the exception anyway, never retrying.

      May affect previous versions. I have not triage'd those yet.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              ctubbsii Christopher Tubbs
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h