Skip to content

Commit

Permalink
[inner-2190] collections adjusted to be thread-safe
Browse files Browse the repository at this point in the history
(cherry picked from commit 4eac4e1)
  • Loading branch information
wenyh1 committed Nov 10, 2023
1 parent 0263eba commit b9eba11
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;


public final class LoadDataBatch {
private static final Logger LOGGER = LoggerFactory.getLogger(LoadDataBatch.class);
private volatile int size;
private volatile boolean enableBatchLoadData;
private Set<String> successFileNames = new HashSet<>();
private Set<String> successFileNames = ConcurrentHashMap.newKeySet();
private int currentNodeSize = 0;
private Map<String, List<String>> warnings = new HashMap<>();

Expand Down

0 comments on commit b9eba11

Please sign in to comment.