[
https://issues.apache.org/jira/browse/HBASE-13040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321199#comment-14321199
]
zhangduo commented on HBASE-13040:
----------------------------------
Oh, it is because we use the same local tmp directory across different test
cases. So if we run testcase on master first, then on branch-1 will get a
invalid character exception.
We should use HBaseTestingUtility.createLocalHTU in this test.
> Possible failure of TestHMasterRPCException
> -------------------------------------------
>
> Key: HBASE-13040
> URL: https://issues.apache.org/jira/browse/HBASE-13040
> Project: HBase
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0
> Reporter: zhangduo
> Assignee: zhangduo
> Attachments: HBASE-13040.patch
>
>
> When addressing HBASE-13011, TestHMasterRPCException failed twice in
> PreCommit Build.
> I found that the test itself has a problem. We start a HMaster, and then we
> continue calling isMasterRunning and expected a ServerNotRunningYetException.
> But it is possible that when we connect to HMaster, it has already finished
> initialization, and we just get a 'true' response instead of an
> Exception.(Just add a 'Thread.sleep(1000);' after 'HMaster hm = new
> HMaster(conf, cp);', you can get a stable failure).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)