mirror of
https://github.com/actiontech/dble.git
synced 2026-05-12 09:29:11 -05:00
fix: use thread-safe collections
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user