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

Fix TestFSHDFSUtils against java7 test re-ordering

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.95.1
    • 0.98.0, 0.94.12, 0.96.0
    • test
    • None
    • Reviewed

    Description

      The test methods of TestFSHDFSUtils depends on hbase.lease.recovery.dfs.timeout, which is overwritten by testIsFileClosed. In case it runs first, it fails testRecoverLease because it assumes a different value. This makes this test flakey in java7 environment.

      The proposed fix is to let both tests specify the property value in their definition.

      Attachments

        1. HBase-9195.patch
          0.8 kB
          Himanshu Vashishtha
        2. HBase-9195.patch
          0.8 kB
          Himanshu Vashishtha
        3. HBase-9195-v1.patch
          1 kB
          Himanshu Vashishtha
        4. HBase-9195-94.patch
          1 kB
          Himanshu Vashishtha

        Activity

          People

            v.himanshu Himanshu Vashishtha
            v.himanshu Himanshu Vashishtha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: