[ https://issues.apache.org/jira/browse/HDFS-15548?focusedWorklogId=486030&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-486030 ]
ASF GitHub Bot logged work on HDFS-15548: ----------------------------------------- Author: ASF GitHub Bot Created on: 18/Sep/20 02:00 Start Date: 18/Sep/20 02:00 Worklog Time Spent: 10m Work Description: LeonGao91 commented on a change in pull request #2288: URL: https://github.com/apache/hadoop/pull/2288#discussion_r490657266 ########## File path: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeImpl.java ########## @@ -412,16 +435,31 @@ long getBlockPoolUsed(String bpid) throws IOException { */ @VisibleForTesting public long getCapacity() { + long capacity; if (configuredCapacity < 0L) { long remaining; if (cachedCapacity > 0L) { remaining = cachedCapacity - getReserved(); } else { remaining = usage.getCapacity() - getReserved(); } - return Math.max(remaining, 0L); + capacity = Math.max(remaining, 0L); + } else { + capacity = configuredCapacity; + } + + if (enableSameDiskArchival) { + double reservedForArchival = conf.getDouble( Review comment: Oh yeah my mistake here, thanks for the catch! ---------------------------------------------------------------- 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: 486030) Time Spent: 1h 40m (was: 1.5h) > Allow configuring DISK/ARCHIVE storage types on same device mount > ----------------------------------------------------------------- > > Key: HDFS-15548 > URL: https://issues.apache.org/jira/browse/HDFS-15548 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode > Reporter: Leon Gao > Assignee: Leon Gao > Priority: Major > Labels: pull-request-available > Time Spent: 1h 40m > Remaining Estimate: 0h > > We can allow configuring DISK/ARCHIVE storage types on the same device mount > on two separate directories. > Users should be able to configure the capacity for each. Also, the datanode > usage report should report stats correctly. -- 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