[ https://issues.apache.org/jira/browse/HDFS-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14957754#comment-14957754 ]
Colin Patrick McCabe commented on HDFS-9188: -------------------------------------------- Thanks, [~eddyxu]. {code} 1533 for(MaterializedReplica replica : replicas) { 1534 replica.corruptData(sb.toString().getBytes()); 1535 } {code} You need to set UTF8 as the encoding. +1 once that's resolved and pending jenkins > Make block corruption related tests FsDataset-agnostic. > -------------------------------------------------------- > > Key: HDFS-9188 > URL: https://issues.apache.org/jira/browse/HDFS-9188 > Project: Hadoop HDFS > Issue Type: Improvement > Components: HDFS, test > Affects Versions: 2.7.1 > Reporter: Lei (Eddy) Xu > Assignee: Lei (Eddy) Xu > Attachments: HDFS-9188.000.patch, HDFS-9188.001.patch, > HDFS-9188.002.patch, HDFS-9188.003.patch, HDFS-9188.004.patch, > HDFS-9188.005.patch > > > Currently, HDFS does block corruption tests by directly accessing the files > stored on the storage directories, which assumes {{FsDatasetImpl}} is the > dataset implementation. However, with works like OZone (HDFS-7240) and > HDFS-8679, there will be different FsDataset implementations. > So we need a general way to run whitebox tests like corrupting blocks and crc > files. -- This message was sent by Atlassian JIRA (v6.3.4#6332)