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

TestSnapshotFromMaster#testSnapshotHFileArchiving will fail if there are too many hfiles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      TestSnapshotFromMaster#testSnapshotHFileArchiving assumes that all hfiles will be compacted and be moved to “archive folder” after cleaning. But not all hfiles will be compacted if there are large number of hfiles.
      The above may be happened if changing the default config like smaller write buffer(hbase.client.write.buffer) or ExponentialClientBackoffPolicy.

      TestSnapshotFromMaster.java
      // it should also check the hfiles in the normal path (/hbase/data/default/...)
      public void testSnapshotHFileArchiving() throws Exception {
        //...
        // get the archived files for the table
          Collection<String> files = getArchivedHFiles(archiveDir, rootDir, fs, TABLE_NAME);
      
          // and make sure that there is a proper subset
          for (String fileName : snapshotHFiles) {
            assertTrue("Archived hfiles " + files + " is missing snapshot file:" + fileName,
              files.contains(fileName));
          }
        //...
      }   
      

      Attachments

        1. HBASE-16235-v1.patch
          4 kB
          Chia-Ping Tsai
        2. HBASE-16235-v2.patch
          4 kB
          Chia-Ping Tsai
        3. HBASE-16235-v3.patch
          4 kB
          Chia-Ping Tsai
        4. hbase-16235.master.v4.patch
          3 kB
          Chia-Ping Tsai
        5. 16235.addendum
          2 kB
          Ted Yu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: