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

Jingcheng Du commented on HBASE-12540:
--------------------------------------

Hi Stack [~stack], I checked the log, 
{noformat}
2014-11-19 12:41:50,889 WARN  [IPC Server handler 8 on 45640] 
security.UserGroupInformation(1645): PriviledgedActionException 
as:jenkins.hfs.0 (auth:SIMPLE) cause:java.io.FileNotFoundException: 
File/Directory 
/user/jenkins/hbase/data/default/testMobMetrics/9a75b9728c76748d2963cbc975504a43/d/14ea0c361e2348ab816879cd52147bc2
 does not exist.
2014-11-19 12:41:50,890 INFO  [IPC Server handler 9 on 45640] 
blockmanagement.BlockManager(1076): BLOCK* addToInvalidates: 
blk_1073741846_1022 127.0.0.1:52665
2014-11-19 12:41:50,896 WARN  [RS:0;p0120:56624-smallCompactions-1416429710151] 
backup.HFileArchiver(427): Failed to archive class 
org.apache.hadoop.hbase.backup.HFileArchiver$FileableStoreFile, 
file:hdfs://localhost:45640/user/jenkins/hbase/data/default/testMobMetrics/9a75b9728c76748d2963cbc975504a43/d/14ea0c361e2348ab816879cd52147bc2
 on try #0
java.io.FileNotFoundException: File/Directory 
/user/jenkins/hbase/data/default/testMobMetrics/9a75b9728c76748d2963cbc975504a43/d/14ea0c361e2348ab816879cd52147bc2
 does not exist.
{noformat}
The file could not be found when archiving after compaction, this issue might 
be caused by multiple compactions run at the same time? I have reduced the 
hfile count to threshold-1 to avoid the HBase compaction. Now the patch is 
available, and the test passes in the branch HBASE-11339, please have a look 
and try in your code, thanks!

> TestRegionServerMetrics#testMobMetrics test failure
> ---------------------------------------------------
>
>                 Key: HBASE-12540
>                 URL: https://issues.apache.org/jira/browse/HBASE-12540
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: stack
>         Attachments: HBASE-12540.diff, log.txt
>
>
> Got this on an internal rig run.  Maybe you want to take a looksee 
> [~jingchengdu]?
> {code}
> Error Message
> Metrics Counters should be equal expected:<5> but was:<2>
> Stacktrace
> java.lang.AssertionError: Metrics Counters should be equal expected:<5> but 
> was:<2>
>       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.test.MetricsAssertHelperImpl.assertCounter(MetricsAssertHelperImpl.java:185)
>       at 
> org.apache.hadoop.hbase.regionserver.TestRegionServerMetrics.testMobMetrics(TestRegionServerMetrics.java:448)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>       at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>       at 
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>       at org.junit.runners.Suite.runChild(Suite.java:127)
>       at org.junit.runners.Suite.runChild(Suite.java:26)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> {code}



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

Reply via email to