We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ab92c commit ae2aaf9Copy full SHA for ae2aaf9
hbase/hbase-sink/src/main/java/com/dtstack/flink/sql/sink/hbase/HbaseOutputFormat.java
@@ -47,6 +47,7 @@
47
import java.util.LinkedList;
48
import java.util.List;
49
import java.util.Map;
50
+import java.util.concurrent.CopyOnWriteArrayList;
51
import java.util.concurrent.Executors;
52
import java.util.concurrent.ScheduledExecutorService;
53
import java.util.concurrent.ScheduledFuture;
@@ -92,7 +93,7 @@ public class HbaseOutputFormat extends AbstractDtRichOutputFormat<Tuple2> {
92
93
private transient ScheduledExecutorService executor;
94
private transient ScheduledFuture scheduledFuture;
95
- private final List<Row> records = new ArrayList<>();
96
+ private final List<Row> records = new CopyOnWriteArrayList<>();
97
98
99
@Override
0 commit comments