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

Umesh Agashe commented on HBASE-19767:
--------------------------------------

Here are my findings:
 # There are no fixed steps to reproduce the problem and it shows up 
intermittently (if thats not the case please update the Jira with steps for 
repro).
 # I verified all the calculations from UI code to backend and it looks okay to 
me. No int overflows, 'long' is used all along. RS aggregates all compaction 
progress numbers across all regions.
 # totalCompactingKVs are not accurate but over estimated. Considering this, I 
am not quite sure how totalCompactingKVs can be less than currentCompactedKVs.
 # I tried combinations or operations with different store files through UT to 
get negative remaining KVs but didn't succeed.
 # One possibility is error while writing trailer and because of this 
totalCompactingKVs are stored as 0 (speculation).

Based on this I have uploaded the patch to print warning when 
totalCompactingKVs are less than currentCompactedKVs. This will help with 
further debugging. When total is less than current, current is returned. This 
should take care of displaying incorrect percentage and remaining KVs in UI.

> Master web UI shows negative values for Remaining KVs
> -----------------------------------------------------
>
>                 Key: HBASE-19767
>                 URL: https://issues.apache.org/jira/browse/HBASE-19767
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha-4
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Umesh Agashe
>            Priority: Major
>             Fix For: 2.0.0-beta-2
>
>         Attachments: Screen Shot 2018-01-12 at 12.18.41 PM.png, 
> hbase-19767.master.001.patch
>
>
> In the Master Web UI, under the compaction tab, the Remaining KVs sometimes 
> shows negative values.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to