You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2025/08/18 06:37:47 UTC

(pulsar) branch branch-3.0 updated: [fix][test] Fix ConcurrentModificationException in Ipv4Proxy (#24632)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 2e6414a9fb5 [fix][test] Fix ConcurrentModificationException in Ipv4Proxy (#24632)
2e6414a9fb5 is described below

commit 2e6414a9fb56800b7f17756bb06270c5f6330aa9
Author: Philipp Dolif <52...@users.noreply.github.com>
AuthorDate: Sat Aug 16 09:58:47 2025 +0200

    [fix][test] Fix ConcurrentModificationException in Ipv4Proxy (#24632)
    
    (cherry picked from commit 19b7c2765c56794a6926603c4d4a11c39c21faa6)
---
 .../src/test/java/org/apache/pulsar/broker/service/Ipv4Proxy.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/Ipv4Proxy.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/Ipv4Proxy.java
index a84dab4d17d..9fcc7b06804 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/Ipv4Proxy.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/Ipv4Proxy.java
@@ -84,7 +84,7 @@ public class Ipv4Proxy {
     }
 
     public void disconnectFrontChannels() throws InterruptedException {
-        for (Channel channel : frontChannels) {
+        for (Channel channel : new ArrayList<>(frontChannels)) {
             channel.close();
         }
     }