Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2723

Wrap InputStream with try-with-resource in TestOzoneFSInputStream

    XMLWordPrintableJSON

Details

    Description

      Thanks weichiu for the proposal.

      To ensure resource is closed properly, we could wrap the fs.open() in a try.
      The detail is on https://github.com/apache/hadoop-ozone/pull/345/files#r357315867

      Attachments

        Issue Links

          Activity

            People

              cxorm Yi-Sheng Lien
              cxorm Yi-Sheng Lien
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m