[ 
https://issues.apache.org/jira/browse/HDFS-15810?focusedWorklogId=583179&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-583179
 ]

ASF GitHub Bot logged work on HDFS-15810:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Apr/21 07:12
            Start Date: 15/Apr/21 07:12
    Worklog Time Spent: 10m 
      Work Description: fengnanli commented on a change in pull request #2910:
URL: https://github.com/apache/hadoop/pull/2910#discussion_r613812428



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java
##########
@@ -371,13 +372,13 @@ private static void setStateStoreVersions(
   }
 
   @Override
-  public long getTotalCapacity() {
-    return getNameserviceAggregatedLong(MembershipStats::getTotalSpace);
+  public BigInteger getTotalCapacity() {

Review comment:
       Another way to do this is adding new metrics in BigInt instead of 
overwriting exiting one. We can call them getTotalCapacityBigInt() What do you 
think?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 583179)
    Time Spent: 1h  (was: 50m)

> RBF: RBFMetrics's TotalCapacity out of bounds
> ---------------------------------------------
>
>                 Key: HDFS-15810
>                 URL: https://issues.apache.org/jira/browse/HDFS-15810
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Xiaoxing Wei
>            Assignee: Fengnan Li
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2021-02-02-10-59-17-113.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The Long type fields TotalCapacity,UsedCapacity and RemainingCapacity in 
> RBFMetrics maybe ** out of bounds.
> !image-2021-02-02-10-59-17-113.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to