You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.ClassCastException: class io.opentelemetry.javaagent.instrumentation.redisson.CompletableFutureWrapper cannot be cast to class org.redisson.command.BatchPromise (io.opentelemetry.javaagent.instrumentation.redisson.CompletableFutureWrapper and org.redisson.command.BatchPromise are in unnamed module of loader 'app')
at org.redisson.command.CommandBatchService.lambda$executeRedisBasedQueue$9(CommandBatchService.java:388) ~[redisson-3.17.0.jar:3.17.0]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.concurrent.LinkedBlockingDeque.forEachFrom(LinkedBlockingDeque.java:1323) ~[?:?]
at java.util.concurrent.LinkedBlockingDeque$LBDSpliterator.forEachRemaining(LinkedBlockingDeque.java:1255) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) ~[?:?]
at java.util.concurrent.ConcurrentHashMap$ValueSpliterator.forEachRemaining(ConcurrentHashMap.java:3605) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550) ~[?:?]
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517) ~[?:?]
at org.redisson.command.CommandBatchService.executeRedisBasedQueue(CommandBatchService.java:389) ~[redisson-3.17.0.jar:3.17.0]
at org.redisson.command.CommandBatchService.executeAsync(CommandBatchService.java:226) ~[redisson-3.17.0.jar:3.17.0]
at org.redisson.command.CommandBatchService.execute(CommandBatchService.java:200) ~[redisson-3.17.0.jar:3.17.0]
at org.redisson.RedissonBatch.execute(RedissonBatch.java:207) ~[redisson-3.17.0.jar:3.17.0]
at com.lahti.RedisService.execute()
Steps to reproduce
Run code with java agent opentelemetry
funtest_class_cast_error(redissoneClient:RedissonClient) {
val batchOptions =BatchOptions.defaults().executionMode(BatchOptions.ExecutionMode.REDIS_WRITE_ATOMIC)
val rBatch = redissoneClient.createBatch(batchOptions)
val rSet = rBatch.getSet<String>("testkey")
rSet.deleteAsync()
rBatch.execute()
}
funtest_not_occur_error(redissoneClient:RedissonClient) {
// default BatchOptions.ExecutionMode.IN_MEMORYval rBatch = redissoneClient.createBatch()
val rSet = rBatch.getSet<String>("testkey")
rSet.deleteAsync()
rBatch.execute()
}
What did you expect to see?
Batch execute atomically without ClassCastException exception
What did you see instead?
Batch execution failed with ClassCastException
What version are you using?
Opentelemetry autoinstrumentation: 1.22.0, 1.21.0
Redisson: 3.19.1, 3.17.2, 3.17.0
Describe the bug
ClassCastException occur when use Redisson batch atomically. [Related Code]
org.redisson.command.CommandBatchService.executeRedisBasedQueue
called only in atomic modeSo in batch and not atomic, error is not occurred.
Steps to reproduce
Run code with java agent opentelemetry
What did you expect to see?
Batch execute atomically without
ClassCastException
exceptionWhat did you see instead?
Batch execution failed with ClassCastException
What version are you using?
Opentelemetry autoinstrumentation: 1.22.0, 1.21.0
Redisson: 3.19.1, 3.17.2, 3.17.0
Environment
Compiler: Corretto-11.0.16.8.1
OS: macOS 12.5.1
Additional context
The text was updated successfully, but these errors were encountered: