Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4994

Use MiniYARNCluster with try-with-resources in tests

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: test
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In tests MiniYARNCluster is used with the following pattern:
      In try-catch block create a MiniYARNCluster instance and in finally block close it.
      Try-with-resources is preferred since Java7 instead of the pattern above.

        Attachments

        1. YARN-4994.10.patch
          21 kB
          Andras Bokor
        2. YARN-4994.09.patch
          21 kB
          Andras Bokor
        3. YARN-4994.08.patch
          20 kB
          Andras Bokor
        4. YARN-4994.07.patch
          21 kB
          Andras Bokor
        5. YARN-4994.06.patch
          21 kB
          Andras Bokor
        6. YARN-4994.05.patch
          21 kB
          Andras Bokor
        7. YARN-4994.04.patch
          20 kB
          Andras Bokor
        8. HDFS-10287.03.patch
          19 kB
          Andras Bokor
        9. HDFS-10287.02.patch
          19 kB
          Andras Bokor
        10. HDFS-10287.01.patch
          21 kB
          Andras Bokor

          Issue Links

            Activity

              People

              • Assignee:
                boky01 Andras Bokor
                Reporter:
                boky01 Andras Bokor
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: