Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5697

Avoid resource leakage with try-with-resources

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0, 4.15.1
    • 5.1.0, 4.14.4, 4.16.0
    • None

    Description

      There are places where we catch IOException in finally block while closing a closable resource or have to do redundant null check. If we could use try-with-resources to deal with closure of resources, that would not let us worry about catching IOException or NPE while closing the resources and would be a better replacement.

      Attachments

        1. PHOENIX-5697.master.000.patch
          6 kB
          Viraj Jasani
        2. PHOENIX-5697.4.x-HBase-1.5.000.patch
          6 kB
          Viraj Jasani

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              vjasani Viraj Jasani
              Votes:
              0 Vote for this issue
              Watchers:
              4 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