fix: use thread-safe collections

This commit is contained in:
guoaomen
2022-08-16 14:45:13 +08:00
parent a75d3d0579
commit b5c421fb54
@@ -27,6 +27,7 @@ import org.slf4j.LoggerFactory;
import java.nio.ByteBuffer;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.LockSupport;
@@ -73,7 +74,7 @@ public final class DryRun {
}
//check all the config is legal
List<ErrorInfo> list = new ArrayList<>();
List<ErrorInfo> list = new CopyOnWriteArrayList<>();
try {
loader.testConnection(false);
} catch (Exception e) {