- Notifications
You must be signed in to change notification settings - Fork 919
Closed
Labels
BugSomething isn't workingSomething isn't working
Description
Describe the bug
There is a ConcurrentModificationException thrown while calling build() on LongGaugeBuilder.
Steps to reproduce
not yet
What did you expect to see?
No exception thrown
What did you see instead?
ConcurrentModificationException
What version and what artifacts are you using?
Artifacts: see *.gradle.kts excerpt below
Version: 1.42.1
How did you reference these artifacts?
implementation(platform("io.opentelemetry:opentelemetry-bom:1.42.1")) implementation("io.opentelemetry:opentelemetry-context") implementation("io.opentelemetry:opentelemetry-api") implementation("io.opentelemetry:opentelemetry-exporter-common") implementation("io.opentelemetry:opentelemetry-exporter-otlp") implementation("io.opentelemetry:opentelemetry-exporter-logging") implementation("io.opentelemetry:opentelemetry-extension-kotlin") implementation("io.opentelemetry:opentelemetry-api-incubator") implementation("io.opentelemetry:opentelemetry-extension-kotlin") implementation("io.opentelemetry:opentelemetry-sdk") Environment
Compiler: JDK 17 - Temurin
OS: Ubuntu (unknown version)
Runtime (if different from JDK above): Android runtime (ART)
OS (if different from OS compiled on): Android
Additional context
Caused by java.util.ConcurrentModificationException: at java.util.Hashtable$Enumerator.next(Hashtable.java:1397) at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:133) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:489) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:475) at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:236) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:482) at io.opentelemetry.api.internal.ConfigUtil.getString(ConfigUtil.java:40) at io.opentelemetry.sdk.metrics.internal.debug.DebugConfig.<clinit>(DebugConfig.java:25) at io.opentelemetry.sdk.metrics.internal.debug.SourceInfo.fromCurrentStack(SourceInfo.java:45) at io.opentelemetry.sdk.metrics.internal.descriptor.InstrumentDescriptor.<init>(InstrumentDescriptor.java:25) at io.opentelemetry.sdk.metrics.internal.descriptor.AutoValue_InstrumentDescriptor.<init>(AutoValue_InstrumentDescriptor.java:28) at io.opentelemetry.sdk.metrics.internal.descriptor.InstrumentDescriptor.create(InstrumentDescriptor.java:35) at io.opentelemetry.sdk.metrics.InstrumentBuilder.newDescriptor(InstrumentBuilder.java:111) at io.opentelemetry.sdk.metrics.InstrumentBuilder.buildSynchronousInstrument(InstrumentBuilder.java:78) at io.opentelemetry.sdk.metrics.SdkLongGauge$SdkLongGaugeBuilder.build(SdkLongGauge.java:96) at io.opentelemetry.sdk.metrics.SdkLongGauge$SdkLongGaugeBuilder.build(SdkLongGauge.java:58) Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working