Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AEAB11158 for ; Tue, 2 Sep 2014 14:48:21 +0000 (UTC) Received: (qmail 65254 invoked by uid 500); 2 Sep 2014 14:48:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 65208 invoked by uid 500); 2 Sep 2014 14:48:21 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 65194 invoked by uid 99); 2 Sep 2014 14:48:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 14:48:21 +0000 Date: Tue, 2 Sep 2014 14:48:20 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11878) TestVisibilityLabelsWithDistributedLogReplay#testAddVisibilityLabelsOnRSRestart sometimes fails due to VisibilityController not yet initialized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11878?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-11878: --------------------------- Attachment: 11878-v1.txt > TestVisibilityLabelsWithDistributedLogReplay#testAddVisibilityLabelsOnRSR= estart sometimes fails due to VisibilityController not yet initialized > -------------------------------------------------------------------------= ---------------------------------------------------------------------- > > Key: HBASE-11878 > URL: https://issues.apache.org/jira/browse/HBASE-11878 > Project: HBase > Issue Type: Test > Reporter: Ted Yu > Assignee: Ted Yu > Attachments: 11878-v1.txt > > > In the thread w.r.t. first RC of 0.98.6,=20 > http://search-hadoop.com/m/DHED4p2rw81 , Jean-Marc reported that TestVisi= bilityLabelsWithDistributedLogReplay#testAddVisibilityLabelsOnRSRestart som= etimes failed on his machines. > From http://server.distparser.com:81/hbase/with_teds_patch2/hbasetest1/hb= ase-server/target/surefire-reports/org.apache.hadoop.hbase.security.visibil= ity.TestVisibilityLabelsWithDistributedLogReplay-output.txt : > {code} > result { > exception { > name: "org.apache.hadoop.hbase.coprocessor.CoprocessorException" > value: "org.apache.hadoop.hbase.coprocessor.CoprocessorException: Vis= ibilityController not yet initialized\n\tat org.apache.hadoop.hbase.securit= y.visibility.VisibilityController.addLabels(VisibilityController.java:638)\= n\tat org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$Vis= ibilityLabelsService$1.addLabels(VisibilityLabelsProtos.java:5014)\n\tat or= g.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$VisibilityL= abelsService.callMethod(VisibilityLabelsProtos.java:5178)\n\tat org.apache.= hadoop.hbase.regionserver.HRegion.execService(HRegion.java:5794)\n\tat org.= apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcSer= vices.java:1608)\n\tat org.apache.hadoop.hbase.regionserver.RSRpcServices.e= xecService(RSRpcServices.java:1590)\n\tat org.apache.hadoop.hbase.protobuf.= generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java= :30088)\n\tat org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:201= 4)\n\tat org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98)\n\t= at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:11= 4)\n\tat org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94)= \n\tat java.lang.Thread.run(Thread.java:744)\n" > } > } > {code} > The above exception revealed a race condition: writing of labels "ABC" an= d "XYZ" took place when VisibilityController was not yet initialized. > The test writes the labels only once, leading to assertion failure. -- This message was sent by Atlassian JIRA (v6.3.4#6332)