HBASE-4132 Addendum adjusts the expected value for preLogRolledCalled.size()
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1175110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06484db575
commit
b0de0129ae
|
@ -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<String> loggedRows = new HashSet<String>();
|
||||
|
|
Loading…
Reference in New Issue