[
https://issues.apache.org/jira/browse/HDFS-17058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736976#comment-17736976
]
ASF GitHub Bot commented on HDFS-17058:
---------------------------------------
zhangshuyan0 commented on code in PR #5776:
URL: https://github.com/apache/hadoop/pull/5776#discussion_r1241477045
##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestReplicationPolicy.java:
##########
@@ -977,7 +977,6 @@ public void testChooseReplicaToDelete() throws Exception {
//Even if this node has the most space, because the storage[5] has
//the lowest it should be chosen in case of block delete.
- storages[4].setRemainingForTests(100 * 1024 * 1024);
Review Comment:
Thanks for your reply. Should we set the remaining of `storages[5]-extra` to
`100 * 1024 * 1024`?
> Some statements in testChooseReplicaToDelete method seems useless
> -----------------------------------------------------------------
>
> Key: HDFS-17058
> URL: https://issues.apache.org/jira/browse/HDFS-17058
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: farmmamba
> Assignee: farmmamba
> Priority: Trivial
> Labels: pull-request-available
>
> Below snippet seems useless in method testChooseReplicaToDelete().
> We can drop it.
> {code:java}
> storages[4].setRemainingForTests(100 * 1024 * 1024); {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]