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
1 changed files with 2 additions and 1 deletions

View File

@ -549,7 +549,8 @@ public class TestDataNodeHotSwapVolumes {
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 =