diff --git a/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java b/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java index 5f6b686d327..b88d5ce9b45 100644 --- a/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java +++ b/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java @@ -421,6 +421,7 @@ public class TestLogRolling { log.registerWALActionsListener(new WALActionsListener() { @Override public void preLogRoll(Path oldFile, Path newFile) { + LOG.debug("preLogRoll: oldFile="+oldFile+" newFile="+newFile); preLogRolledCalled.add(new Integer(1)); } @Override @@ -487,7 +488,8 @@ public class TestLogRolling { // force a log roll to read back and verify previously written logs log.rollWriter(true); - assertTrue(preLogRolledCalled.size() == 1); + assertTrue("preLogRolledCalled has size of " + preLogRolledCalled.size(), + preLogRolledCalled.size() == 4); // read back the data written Set loggedRows = new HashSet();