Revert "HDFS-10722. Fix race condition in TestEditLog#testBatchedSyncWithClosedLogs. Contributed by Daryn Sharp."

This reverts commit c2bb9bf00c.
This commit is contained in:
Zhe Zhang 2016-10-31 16:35:05 -07:00
parent c2bb9bf00c
commit 7900b1e803
1 changed files with 2 additions and 6 deletions

View File

@ -591,12 +591,8 @@ public class TestEditLog {
// Log an edit from thread A
doLogEdit(threadA, editLog, "thread-a 1");
// async log is doing batched syncs in background. logSync just ensures
// the edit is durable, so the txid may increase prior to sync
if (!useAsyncEditLog) {
assertEquals("logging edit without syncing should do not affect txid",
1, editLog.getSyncTxId());
}
assertEquals("logging edit without syncing should do not affect txid",
1, editLog.getSyncTxId());
// logSyncAll in Thread B
doCallLogSyncAll(threadB, editLog);
assertEquals("logSyncAll should sync thread A's transaction",