Skip to content

Commit

Permalink
bugfix: solve the concurrency problem in ruleTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
changfeng authored and 2011shenlin committed Jul 30, 2023
1 parent f1a5039 commit da33c12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.annotation.PostConstruct;
import org.apache.commons.collections.MapUtils;
import org.apache.rocketmq.eventbridge.adapter.runtime.boot.common.CirculatorContext;
Expand Down Expand Up @@ -67,7 +68,7 @@ public void init() {

@Override
public void run() {
List<ConnectRecord> afterTransformConnect= Lists.newArrayList();
List<ConnectRecord> afterTransformConnect = new CopyOnWriteArrayList<>();;
while (!stopped) {
try {
Map<String, List<ConnectRecord>> eventRecordMap = circulatorContext.takeEventRecords(batchSize);
Expand Down

0 comments on commit da33c12

Please sign in to comment.