[
https://issues.apache.org/jira/browse/HBASE-7789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574362#comment-13574362
]
nkeywal commented on HBASE-7789:
--------------------------------
The line in TestAssignment took me longer than expected... Local tests seems ok
(except flakiness)
@stack
The advantage of returning the object instead of a clone of the internal list
is that stuff like
"return serverManager.getDeadServers().size();" (in MetricsMasterWrapperImpl)
does not do a (hidden) copy anymore. As the method is synchronized, it's not
necessary (and clone was already synchronized, so we have less synchronization
now). Agreed, the list size is usually not huge, but still...
> Clean DeadServer.java and add a Jitter method in ConnectionUtils
> ----------------------------------------------------------------
>
> Key: HBASE-7789
> URL: https://issues.apache.org/jira/browse/HBASE-7789
> Project: HBase
> Issue Type: Bug
> Components: master
> Affects Versions: 0.96.0
> Reporter: nkeywal
> Assignee: nkeywal
> Fix For: 0.96.0
>
> Attachments: 7789.v1.patch
>
>
> I need to do some changes in DeadServer because of HBASE-7390. To minimize
> the patch size and simplifies the feedback, I prefer to isolate the issue.
> Changes are:
> - Add the time when the server was declared as dead. It's what I need in
> HBASE-7390, but it makes sense even without it, for example to be shown in
> the UI.
> - suppress the extends on Set & clean up all the not used methods
> - use directly the object instead of a copy.
> For connection utils, we currently have a jitter of 1%. I need a bigger one
> for sure in one case, but I wonder if we should not increase it in all cases?
> instead of plus 1%, we should have plus or minus 10% imho.
> Tests are in progress locally, I will add the patch when they're ok.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira