[
https://issues.apache.org/jira/browse/HBASE-28997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pankaj Kumar resolved HBASE-28997.
----------------------------------
Fix Version/s: 2.7.0
3.0.0-beta-2
2.6.3
2.5.12
Resolution: Fixed
Pushed to branch-2.5+, thanks [~chandrasekhar.k] for the contribution and
[~nihaljain.cs] for reviewing the PR.
> Table Regions Total Locality value on the UI shows 1.0 even though some of
> the regions locality value is zero
> -------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-28997
> URL: https://issues.apache.org/jira/browse/HBASE-28997
> Project: HBase
> Issue Type: Bug
> Components: UI
> Reporter: Chandra Sekhar K
> Assignee: Chandra Sekhar K
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.3, 2.5.12
>
>
> Table Regions Total Locality value on the UI shows 1.0 even though some of
> the regions locality value is zero. This is due to the rounding of happening
> inside the String.format() function.
> I have a table with 200 regions and 1 of the regions locality is zero, the
> overall locality calculated value is ~0.99524385, but the String.format
> function rounded of this value to 1.0.
> If some of the table regions localtiy is zero then we should not show the
> total Locality of the table as 1.0 as this can be misleading to the user.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)