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

Ivan A. Veselovsky commented on HBASE-8397:
-------------------------------------------

Hi, Ted, 
Actually I couldn't reproduce the issue also , even with -Psecurity.
I have 2 ideas why that failure could happen: 
1) the test was annotated "@Category(SmallTests)" , so it might have been 
executed together with other tests, that could affect the behavior.
2) the test might have "/hadoop-metrics.properties"  resource in the classpath, 
so it might have started the metrics update timer thread, that could affect the 
behavior.
So, I updated the patch (HBASE-8397-0.94--N7.patch) with the following changes: 
(1) assigned the test to @MediumTests,  (2) added code to ensure that the 
metrics use NullContext which never starts the update thread.

> improve unit-test coverage of package org.apache.hadoop.hbase.master.metrics 
> (0.94)
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-8397
>                 URL: https://issues.apache.org/jira/browse/HBASE-8397
>             Project: HBase
>          Issue Type: Test
>    Affects Versions: 0.94.8
>            Reporter: Ivan A. Veselovsky
>            Assignee: Ivan A. Veselovsky
>             Fix For: 0.94.14
>
>         Attachments: HBASE-8397-0.94--N3.patch, HBASE-8397-0.94--N5.patch, 
> HBASE-8397-0.94--N6.patch
>
>
> The patch suggests new test that elevates unit-test coverage of package  
> org.apache.hadoop.hbase.master.metrics .
> The patch is applicable to branch 0.94 only.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to