[ https://issues.apache.org/jira/browse/HDFS-16370?focusedWorklogId=690475&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-690475 ]
ASF GitHub Bot logged work on HDFS-16370: ----------------------------------------- Author: ASF GitHub Bot Created on: 04/Dec/21 09:37 Start Date: 04/Dec/21 09:37 Worklog Time Spent: 10m Work Description: tomscut commented on a change in pull request #3747: URL: https://github.com/apache/hadoop/pull/3747#discussion_r762407141 ########## File path: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockInfo.java ########## @@ -146,7 +146,7 @@ BlockInfo getNext(int index) { BlockInfo info = (BlockInfo)triplets[index*3+2]; assert info == null || info.getClass().getName().startsWith( BlockInfo.class.getName()) : - "BlockInfo is expected at " + index*3; + "BlockInfo is expected at " + (index*3+2); Review comment: OK, I fixed this. -- 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. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 690475) Time Spent: 50m (was: 40m) > Fix assert message for BlockInfo > -------------------------------- > > Key: HDFS-16370 > URL: https://issues.apache.org/jira/browse/HDFS-16370 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: tomscut > Assignee: tomscut > Priority: Minor > Labels: pull-request-available > Time Spent: 50m > Remaining Estimate: 0h > > In both methods BlockInfo#getPrevious and BlockInfo#getNext, the assert > message is wrong. This may cause some misunderstanding and needs to be fixed. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org