Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19147 All branch-2 unit tests pass
  3. HBASE-19841

Tests against hadoop3 fail with StreamLacksCapabilityException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2, 2.0.0
    • None
    • None
    • HBaseTestingUtility now assumes that all clusters will use local storage until a MiniDFSCluster is started or assigned.

    Description

      The following can be observed running against hadoop3:

      java.io.IOException: cannot get log writer
      	at org.apache.hadoop.hbase.regionserver.TestCompactingMemStore.compactingSetUp(TestCompactingMemStore.java:107)
      	at org.apache.hadoop.hbase.regionserver.TestCompactingMemStore.setUp(TestCompactingMemStore.java:89)
      Caused by: org.apache.hadoop.hbase.util.CommonFSUtils$StreamLacksCapabilityException: hflush and hsync
      	at org.apache.hadoop.hbase.regionserver.TestCompactingMemStore.compactingSetUp(TestCompactingMemStore.java:107)
      	at org.apache.hadoop.hbase.regionserver.TestCompactingMemStore.setUp(TestCompactingMemStore.java:89)
      

      This was due to hbase-server/src/test/resources/hbase-site.xml not being picked up by Configuration object. Among the configs from this file, the value for "hbase.unsafe.stream.capability.enforce" relaxes check for presence of hflush and hsync. Without this config entry, StreamLacksCapabilityException is thrown.

      Attachments

        1. HBASE-19841.v11.patch
          20 kB
          Michael Stack
        2. HBASE-19841.v11.patch
          20 kB
          Mike Drob
        3. HBASE-19841.v10.patch
          19 kB
          Mike Drob
        4. HBASE-19841.v9.patch
          21 kB
          Mike Drob
        5. HBASE-19841.v8.patch
          14 kB
          Michael Stack
        6. HBASE-19841.v8.patch
          14 kB
          Michael Stack
        7. HBASE-19841.v8.patch
          14 kB
          Mike Drob
        8. 19841.007.patch
          10 kB
          Mike Drob
        9. HBASE-19841.v7.patch
          30 kB
          Mike Drob
        10. 19841.06.patch
          29 kB
          Mike Drob
        11. HBASE-19841.v5.patch
          29 kB
          Mike Drob
        12. HBASE-19841.v4.patch
          28 kB
          Mike Drob
        13. HBASE-19841.v3.patch
          9 kB
          Mike Drob
        14. 19841.v1.txt
          4 kB
          Ted Yu
        15. 19841.v0.txt
          0.8 kB
          Ted Yu
        16. HBASE-19841.v2.patch
          1 kB
          Mike Drob

        Issue Links

          Activity

            People

              mdrob Mike Drob
              yuzhihong@gmail.com Ted Yu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: