HBASE-5908. TestHLogSplit.testTralingGarbageCorruptionFileSkipErrorsPasses should not use append to corrupt the HLog. Contributed by Gregory Chanan.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1332495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc9c63f8c3
commit
49db96433d
|
@ -119,8 +119,6 @@ public class TestHLogSplit {
|
|||
|
||||
@BeforeClass
|
||||
public static void setUpBeforeClass() throws Exception {
|
||||
TEST_UTIL.getConfiguration().
|
||||
setBoolean("dfs.support.append", true);
|
||||
TEST_UTIL.getConfiguration().
|
||||
setStrings("hbase.rootdir", hbaseDir.toString());
|
||||
TEST_UTIL.getConfiguration().
|
||||
|
@ -1227,7 +1225,9 @@ public class TestHLogSplit {
|
|||
|
||||
switch (corruption) {
|
||||
case APPEND_GARBAGE:
|
||||
out = fs.append(path);
|
||||
fs.delete(path, false);
|
||||
out = fs.create(path);
|
||||
out.write(corrupted_bytes);
|
||||
out.write("-----".getBytes());
|
||||
closeOrFlush(close, out);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue