HDFS-14677. TestDataNodeHotSwapVolumes#testAddVolumesConcurrently fails intermittently in trunk. Contributed by Chen Zhang.

This commit is contained in:
Ayush Saxena 2019-07-30 22:17:39 +05:30
parent 88daa730a3
commit 8deced0073

View File

@ -549,7 +549,8 @@ public void testAddVolumesConcurrently()
dn.data = Mockito.spy(data);
final int newVolumeCount = 40;
List<Thread> addVolumeDelayedThreads = new ArrayList<>();
List<Thread> addVolumeDelayedThreads =
Collections.synchronizedList(new ArrayList<>());
AtomicBoolean addVolumeError = new AtomicBoolean(false);
AtomicBoolean listStorageError = new AtomicBoolean(false);
CountDownLatch addVolumeCompletionLatch =