[
https://issues.apache.org/jira/browse/HBASE-4749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144182#comment-13144182
]
Ted Yu commented on HBASE-4749:
-------------------------------
Fourth option: use Guava ConcurrentMap for ServerManager.onlineServers where
expiration time period can be adjusted by a new config parameter:
{code}
ConcurrentMap<ServerName, HServerLoad> onlineServers =
new MapMaker().expiration(2,
TimeUnit.MINUTES).evictionListener(listener).makeMap();
{code}
The registered listener would call expireServer() for the underlying region
server.
In HMaster.regionServerReport(), we refresh the entry (through a call to
ServerManager) for the reporting region server.
In terms of testing, the above approach may incur additional waiting period.
> TestMasterFailover case occasional fails
> ----------------------------------------
>
> Key: HBASE-4749
> URL: https://issues.apache.org/jira/browse/HBASE-4749
> Project: HBase
> Issue Type: Bug
> Components: test
> Affects Versions: 0.92.0
> Reporter: gaojinchao
> Priority: Minor
> Fix For: 0.92.0
>
>
> look this logs:
> https://builds.apache.org/view/G-L/view/HBase/job/HBase-0.92/105/testReport/org.apache.hadoop.hbase.master/TestMasterFailover/testMasterFailoverWithMockedRITOnDeadRS/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira