Skip to content

core: fix MetricRecorderImpl#metricSinks ConcurrentModificationException#12730

Merged
ejona86 merged 1 commit intogrpc:masterfrom
JoeCqupt:master
Mar 25, 2026
Merged

core: fix MetricRecorderImpl#metricSinks ConcurrentModificationException#12730
ejona86 merged 1 commit intogrpc:masterfrom
JoeCqupt:master

Conversation

@JoeCqupt
Copy link
Contributor

@JoeCqupt JoeCqupt commented Mar 25, 2026

java.util.ConcurrentModificationException
    at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013)
    at java.base/java.util.ArrayList$Itr.next(ArrayList.java:967)
    at io.grpc.internal.MetricRecorderImpl.addLongCounter(MetricRecorderImpl.java:95)
    at io.grpc.internal.SubchannelMetrics.recordConnectionAttemptSucceeded(SubchannelMetrics.java:82)
    at io.grpc.internal.InternalSubchannel$TransportListener$1.run(InternalSubchannel.java:605)
    at io.grpc.SynchronizationContext.drain(SynchronizationContext.java:96)
    at io.grpc.SynchronizationContext.execute(SynchronizationContext.java:128)
    at io.grpc.internal.InternalSubchannel$TransportListener.transportReady(InternalSubchannel.java:591)
    at io.grpc.netty.shaded.io.grpc.netty.ClientTransportLifecycleManager.notifyReady(ClientTransportLifecycleManager.java:51)

Fix #12727

@JoeCqupt
Copy link
Contributor Author

@ejona86 PTAL

@ejona86 ejona86 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Mar 25, 2026
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Mar 25, 2026
@ejona86 ejona86 merged commit 53053ba into grpc:master Mar 25, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConcurrentModificationException in SubchannelMetrics

4 participants