hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10005) TestVisibilityLabels fails occasionally
Date Thu, 12 Dec 2013 23:24:07 GMT

    [ https://issues.apache.org/jira/browse/HBASE-10005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13846904#comment-13846904
] 

Ted Yu commented on HBASE-10005:
--------------------------------

Andy:
Usage of openjdk was redherring.
You can reproduce the test failure with the following change:
{code}
Index: hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
===================================================================
--- hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java	(revision 1550575)
+++ hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java	(working copy)
@@ -794,7 +794,7 @@

   /** Conf key that enables unflushed WAL edits directly being replayed to region servers
*/
   public static final String DISTRIBUTED_LOG_REPLAY_KEY = "hbase.master.distributed.log.replay";
-  public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = false;
+  public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = true;
   public static final String DISALLOW_WRITES_IN_RECOVERING =
       "hbase.regionserver.disallow.writes.when.recovering";
   public static final boolean DEFAULT_DISALLOW_WRITES_IN_RECOVERING_CONFIG = false;
{code}
As shown in test output above, when testAddVisibilityLabelsOnRSRestart opens scanner to scan
labels table, the region is still in recovery - not ready for scan.

> TestVisibilityLabels fails occasionally
> ---------------------------------------
>
>                 Key: HBASE-10005
>                 URL: https://issues.apache.org/jira/browse/HBASE-10005
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.0
>            Reporter: Ted Yu
>            Assignee: Anoop Sam John
>            Priority: Blocker
>             Fix For: 0.98.0
>
>         Attachments: 10005-TEST-org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels.xml,
10005-org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels.txt, HBASE-10005.patch,
HBASE-10005_addendum.patch
>
>
> I got the following test failures running test suite on hadoop-2 where distributed log
replay was turned on :
> {code}
> testAddVisibilityLabelsOnRSRestart(org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels)
 Time elapsed: 0.019 sec  <<< FAILURE!
> java.lang.AssertionError: The count should be 8 expected:<8> but was:<6>
>   at org.junit.Assert.fail(Assert.java:88)
>   at org.junit.Assert.failNotEquals(Assert.java:743)
>   at org.junit.Assert.assertEquals(Assert.java:118)
>   at org.junit.Assert.assertEquals(Assert.java:555)
>   at org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels.testAddVisibilityLabelsOnRSRestart(TestVisibilityLabels.java:408)
> ...
> testClearUserAuths(org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels)
 Time elapsed: 0.002 sec  <<< FAILURE!
> java.lang.AssertionError
>   at org.junit.Assert.fail(Assert.java:86)
>   at org.junit.Assert.assertTrue(Assert.java:41)
>   at org.junit.Assert.assertTrue(Assert.java:52)
>   at org.apache.hadoop.hbase.security.visibility.TestVisibilityLabels.testClearUserAuths(TestVisibilityLabels.java:505)
> {code}
> Logs to be attached



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message