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
Describe the bug
Calling publishAsync on a topic returns a CompletionStage. Calling toCompletableFuture().get() on the CompletionStage throws a class cast exception. If global ordering is disabled, the call works without an exception.
java.util.concurrent.ExecutionException: java.lang.ClassCastException: class com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl cannot be cast to class com.hazelcast.topic.impl.TopicService (com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl and com.hazelcast.topic.impl.TopicService are in unnamed module of loader 'app')
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.returnOrThrowWithGetConventions(InvocationFuture.java:121)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:100)
at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:618)
at test.TopicTest.testGlobalOrderedTopic(TopicTest.java:29)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.ClassCastException: class com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl cannot be cast to class com.hazelcast.topic.impl.TopicService (com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl and com.hazelcast.topic.impl.TopicService are in unnamed module of loader 'app')
at com.hazelcast.topic.impl.PublishOperation.run(PublishOperation.java:68)
at com.hazelcast.spi.impl.operationservice.Operation.call(Operation.java:193)
at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.call(OperationRunnerImpl.java:299)
at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:270)
at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:219)
at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:180)
at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:144)
at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.loop(OperationThread.java:134)
at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.executeRun(OperationThread.java:115)
at com.hazelcast.internal.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:111)
Hazelcast version 5.3.6 (also tested with 5.4.0-BETA2)
run via maven 3.8.7 as mvn clean test -DargLine="--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED" (exception occurs regardless of argline)
Describe the bug
Calling publishAsync on a topic returns a CompletionStage. Calling toCompletableFuture().get() on the CompletionStage throws a class cast exception. If global ordering is disabled, the call works without an exception.
Expected behavior
No exception.
To Reproduce
Additional context
Hazelcast version 5.3.6 (also tested with 5.4.0-BETA2)
run via maven 3.8.7 as
mvn clean test -DargLine="--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED"
(exception occurs regardless of argline)The text was updated successfully, but these errors were encountered: