[ https://issues.apache.org/jira/browse/HDFS-11912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037913#comment-16037913 ]
George Huang commented on HDFS-11912: ------------------------------------- 1. Shouldn't the check be just (randomNum < (currentWeightSum + currentValue.getWeight()) ==> Ok, fixed. Many thanks! > Add a snapshot unit test with randomized file IO operations > ----------------------------------------------------------- > > Key: HDFS-11912 > URL: https://issues.apache.org/jira/browse/HDFS-11912 > Project: Hadoop HDFS > Issue Type: Test > Components: hdfs > Reporter: George Huang > Priority: Minor > Attachments: HDFS-11912.001.patch > > > Adding a snapshot unit test with randomized file IO operations. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org