[ https://issues.apache.org/jira/browse/HDFS-10652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15389827#comment-15389827 ]
Vinayakumar B commented on HDFS-10652: -------------------------------------- bq. I change the condition replicaInfo.getBytesAcked() < replicaInfo.getBytesOnDisk() to make sure that not only the bytesAcked is smaller than the butesOnDisk, but the latter has to be equal to or bigger than the chunk end Since each time flushed content is 5000 bytes which is way more than chunk, bytesOnDisk would have entire last packet (~5000bytes) flushed to disk, when that exception thrown. Anyway, change is fine though. Making it clear. bq. BTW, I still saw a little flakiness, probably one out of 10 times, I would see that the test failed, Can you post the log output whenever you see the failure? This could be due to shutting down wrong datanode? > Add a unit test for HDFS-4660 > ----------------------------- > > Key: HDFS-10652 > URL: https://issues.apache.org/jira/browse/HDFS-10652 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode, hdfs > Reporter: Yongjun Zhang > Assignee: Vinayakumar B > Attachments: HDFS-10652-002.patch, HDFS-10652.001.patch, > HDFS-10652.003.patch, HDFS-10652.004.patch, HDFS-10652.005.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org