[
https://issues.apache.org/jira/browse/HBASE-19841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336872#comment-16336872
]
Ted Yu commented on HBASE-19841:
--------------------------------
Thanks for the reminder about other tests.
For patch v2, the Configuration instance used by the WAL and the instance used
by testing util have different views of config entries.
This inconsistency may lead to issue down the road.
When I ran TestDefaultMemStore with patch v2 against hadoop3:
{code}
[ERROR]
testShouldFlushMeta(org.apache.hadoop.hbase.regionserver.TestDefaultMemStore)
Time elapsed: 1.184 s <<< ERROR!
java.io.IOException: cannot get log writer
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.testShouldFlushMeta(TestDefaultMemStore.java:950)
Caused by:
org.apache.hadoop.hbase.util.CommonFSUtils$StreamLacksCapabilityException:
hflush and hsync
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.testShouldFlushMeta(TestDefaultMemStore.java:950)
[ERROR]
testShouldFlush(org.apache.hadoop.hbase.regionserver.TestDefaultMemStore) Time
elapsed: 0.117 s <<< ERROR!
java.io.IOException: cannot get log writer
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.checkShouldFlush(TestDefaultMemStore.java:919)
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.testShouldFlush(TestDefaultMemStore.java:906)
Caused by:
org.apache.hadoop.hbase.util.CommonFSUtils$StreamLacksCapabilityException:
hflush and hsync
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.checkShouldFlush(TestDefaultMemStore.java:919)
at
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore.testShouldFlush(TestDefaultMemStore.java:906)
{code}
With patch v0, TestDefaultMemStore and TestCompactingMemStore pass against
hadoop3.
> Tests against hadoop3 fail with StreamLacksCapabilityException
> --------------------------------------------------------------
>
> Key: HBASE-19841
> URL: https://issues.apache.org/jira/browse/HBASE-19841
> Project: HBase
> Issue Type: Test
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Major
> Fix For: 2.0.0-beta-2
>
> Attachments: 19841.v0.txt, 19841.v1.txt, HBASE-19841.v2.patch
>
>
> The following can be observed running against hadoop3:
> {code}
> 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)
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)