HDFS-10722. Fix build break.
This commit is contained in:
parent
3a85aea42d
commit
f3424d662a
|
@ -562,12 +562,8 @@ public class TestEditLog {
|
||||||
|
|
||||||
// Log an edit from thread A
|
// Log an edit from thread A
|
||||||
doLogEdit(threadA, editLog, "thread-a 1");
|
doLogEdit(threadA, editLog, "thread-a 1");
|
||||||
// async log is doing batched syncs in background. logSync just ensures
|
assertEquals("logging edit without syncing should do not affect txid",
|
||||||
// the edit is durable, so the txid may increase prior to sync
|
1, editLog.getSyncTxId());
|
||||||
if (!useAsyncEditLog) {
|
|
||||||
assertEquals("logging edit without syncing should do not affect txid",
|
|
||||||
1, editLog.getSyncTxId());
|
|
||||||
}
|
|
||||||
// logSyncAll in Thread B
|
// logSyncAll in Thread B
|
||||||
doCallLogSyncAll(threadB, editLog);
|
doCallLogSyncAll(threadB, editLog);
|
||||||
assertEquals("logSyncAll should sync thread A's transaction",
|
assertEquals("logSyncAll should sync thread A's transaction",
|
||||||
|
|
Loading…
Reference in New Issue