hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimiduk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13659) Improve test run time for TestMetaWithReplicas class
Date Wed, 17 Jun 2015 18:00:00 GMT

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

Nick Dimiduk commented on HBASE-13659:
--------------------------------------

Hi [~ashish singhi] I applied your patch here to master, works fine. Brought it back to branch-1
and I'm seeing it consistently hang.

>From jstack

{noformat}
"main" prio=5 tid=0x00007fe8e980b800 nid=0x1903 waiting on condition [0x000000010cd5e000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at org.apache.hadoop.hbase.util.Threads.sleep(Threads.java:146)
        at org.apache.hadoop.hbase.MiniHBaseCluster.waitForActiveAndReadyMaster(MiniHBaseCluster.java:485)
        at org.apache.hadoop.hbase.HBaseCluster.waitForActiveAndReadyMaster(HBaseCluster.java:205)
        at org.apache.hadoop.hbase.client.TestMetaWithReplicas.shutdownMetaAndDoValidations(TestMetaWithReplicas.java:221)
        at org.apache.hadoop.hbase.client.TestMetaWithReplicas.testShutdownHandling(TestMetaWithReplicas.java:145)
{noformat}

>From the test logs, I see

{noformat}
2015-06-17 10:53:09,602 WARN  [main] regionserver.HRegionServer(2063): Unable to report fatal
error to master
com.google.protobuf.ServiceException: org.apache.hadoop.hbase.exceptions.ConnectionClosingException:
Call to /10.0.0.110:50399 failed on local exception: org.apache.hadoop.hbase.exceptions.ConnectionClosingException:
Connection to /10.0.0.110:50399 is closing. Call id=47, waitTime=1
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:224)
	at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:288)
	at org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos$RegionServerStatusService$BlockingStub.reportRSFatalError(RegionServerStatusProtos.java:9006)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.abort(HRegionServer.java:2060)
	at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.abortRegionServer(MiniHBaseCluster.java:174)
	at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.access$200(MiniHBaseCluster.java:108)
	at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer$2.run(MiniHBaseCluster.java:167)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:356)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1594)
	at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:306)
	at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.abort(MiniHBaseCluster.java:165)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.abort(HRegionServer.java:2072)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.kill(HRegionServer.java:2087)
	at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.kill(MiniHBaseCluster.java:161)
	at org.apache.hadoop.hbase.MiniHBaseCluster.killRegionServer(MiniHBaseCluster.java:246)
	at org.apache.hadoop.hbase.client.TestMetaWithReplicas.shutdownMetaAndDoValidations(TestMetaWithReplicas.java:201)
	at org.apache.hadoop.hbase.client.TestMetaWithReplicas.testShutdownHandling(TestMetaWithReplicas.java:145)
{noformat}

> Improve test run time for TestMetaWithReplicas class
> ----------------------------------------------------
>
>                 Key: HBASE-13659
>                 URL: https://issues.apache.org/jira/browse/HBASE-13659
>             Project: HBase
>          Issue Type: Sub-task
>          Components: test
>    Affects Versions: 1.1.0
>            Reporter: Ashish Singhi
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0, 1.2.0, 1.1.1
>
>         Attachments: HBASE-13659.patch
>
>
> In TestMetaWithReplicas, start and shutdown of mini cluster is done at start and end
of every test in that class respectively, which makes the test class to take more time to
complete. Instead we can start and stop the mini cluster only once per the class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message