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

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

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



##########
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:
       Adding new metrics is okay to me. Thanks.

##########
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:
       Adding new metrics is also okay to me. Thanks.




-- 
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 583308)
    Time Spent: 1h 10m  (was: 1h)

> 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 10m
>  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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to