HBASE-4095 make cacheFlushLock.waittime longer
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1148691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f84529b0ae
commit
b6fc5b0b80
|
@ -346,7 +346,7 @@ public class HLog implements Syncable {
|
||||||
this.optionalFlushInterval =
|
this.optionalFlushInterval =
|
||||||
conf.getLong("hbase.regionserver.optionallogflushinterval", 1 * 1000);
|
conf.getLong("hbase.regionserver.optionallogflushinterval", 1 * 1000);
|
||||||
this.cacheFlushLockWaitTime =
|
this.cacheFlushLockWaitTime =
|
||||||
conf.getLong("hbase.regionserver.cacheFlushLock.waittime", 5000);
|
conf.getLong("hbase.regionserver.cacheFlushLock.waittime", 25000);
|
||||||
if (failIfLogDirExists && fs.exists(dir)) {
|
if (failIfLogDirExists && fs.exists(dir)) {
|
||||||
throw new IOException("Target HLog directory already exists: " + dir);
|
throw new IOException("Target HLog directory already exists: " + dir);
|
||||||
}
|
}
|
||||||
|
|
|
@ -314,7 +314,8 @@ public class TestLogRolling {
|
||||||
writeData(table, 2);
|
writeData(table, 2);
|
||||||
long newFilenum = log.getFilenum();
|
long newFilenum = log.getFilenum();
|
||||||
|
|
||||||
assertTrue("Missing datanode should've triggered a log roll",
|
assertTrue("Missing datanode should've triggered a log roll: " + newFilenum
|
||||||
|
+ " " + oldFilenum + " " + curTime,
|
||||||
newFilenum > oldFilenum && newFilenum > curTime);
|
newFilenum > oldFilenum && newFilenum > curTime);
|
||||||
|
|
||||||
// write some more log data (this should use a new hdfs_out)
|
// write some more log data (this should use a new hdfs_out)
|
||||||
|
|
Loading…
Reference in New Issue