This is an automated email from the ASF dual-hosted git repository.
Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 7dc8ecc59d fix: replace ArrayList with CopyOnWriteArrayList to avoid
ConcurrentModificationException in URI heartbeat (#6352)
7dc8ecc59d is described below
commit 7dc8ecc59d33b33f0ecaf0ac05976756a42d3f93
Author: eye-gu <[email protected]>
AuthorDate: Tue Jun 2 10:05:45 2026 +0800
fix: replace ArrayList with CopyOnWriteArrayList to avoid
ConcurrentModificationException in URI heartbeat (#6352)
---
.../core/disruptor/subcriber/ShenyuClientURIExecutorSubscriber.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/disruptor/subcriber/ShenyuClientURIExecutorSubscriber.java
b/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/disruptor/subcriber/ShenyuClientURIExecutorSubscriber.java
index cdfdbce3ea..82a74fd377 100644
---
a/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/disruptor/subcriber/ShenyuClientURIExecutorSubscriber.java
+++
b/shenyu-client/shenyu-client-core/src/main/java/org/apache/shenyu/client/core/disruptor/subcriber/ShenyuClientURIExecutorSubscriber.java
@@ -18,7 +18,6 @@
package org.apache.shenyu.client.core.disruptor.subcriber;
import com.google.common.base.Stopwatch;
-import com.google.common.collect.Lists;
import org.apache.shenyu.client.core.shutdown.ShenyuClientShutdownHook;
import org.apache.shenyu.client.core.shutdown.ShutdownHookManager;
import org.apache.shenyu.common.concurrent.ShenyuThreadFactory;
@@ -36,6 +35,7 @@ import java.io.IOException;
import java.net.Socket;
import java.util.Collection;
import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
@@ -47,7 +47,7 @@ public class ShenyuClientURIExecutorSubscriber implements
ExecutorTypeSubscriber
private static final Logger LOG =
LoggerFactory.getLogger(ShenyuClientURIExecutorSubscriber.class);
- private static final List<URIRegisterDTO> URIS = Lists.newArrayList();
+ private static final List<URIRegisterDTO> URIS = new
CopyOnWriteArrayList<>();
private final ShenyuClientRegisterRepository
shenyuClientRegisterRepository;