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

Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      None

      Description

      BatchWriter, ConditionalWriter, Scanner, and BatchScanner all have close Methods. Howerver because they do not implement AutoCloseable they can not be used with try-with-resources.

      It would be simple to add AutoCloseable to all of these. I think this change should only be made in a minor release because it allows writing code that will not work with older versions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kturner Keith Turner
                Reporter:
                kturner Keith Turner
              • 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 - 3h
                  3h