Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18858

Ensures all resources are closed at the end of tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • test
    • None

    Description

        public static void tearDownAfterClass() throws Exception {
          htable2.close();
          htable1.close();
          admin.close();
          utility2.shutdownMiniCluster();
          utility1.shutdownMiniCluster();
        }
      

      If the setUpBeforeClass() fail, some members will be NULL. We need to ensures all resources are closed at the end of tests.

      Attachments

        1. HBASE-18858.branch-1.v0.patch
          2 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: