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

Clean up Instance closing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.4.5, 1.5.1, 1.6.0
    • None
    • None

    Description

      Per discussion with ctubbsii on ACCUMULO-1889:

      It seems to me that the best fix is to:

      • patch org.apache.accumulo.fate.zookeeper.ZooReader.close() to handle the ZooKeeper close()'s InterruptedException properly with Thread.currentThread().interrupt()
      • stop propagating InterruptedException through the hierarchy of close() statements
      • drop the AccumuloException from the Instance.close() method signature and make Interface extend java.io.Closeable instead (at the very least, drop the unnecessary AccumuloException and make it AutoCloseable when we switch to JDK1.7; changing it to java.io.Closeable now would ease that)
      • change that catch statement to catch RuntimeExceptions instead of InterruptedException and rethrow them after fixing the counter

      Since this API is just being added, we should fix these things now before it gets published in a release.

      Attachments

        1. ACCUMULO-1984-1.4.patch
          8 kB
          Bill Havanki

        Issue Links

          Activity

            People

              bhavanki Bill Havanki
              busbey Sean Busbey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: