Mikhail Pochatkin created IGNITE-21397:
------------------------------------------
Summary: Fix problem with fastutil shading in core module
Key: IGNITE-21397
URL: https://issues.apache.org/jira/browse/IGNITE-21397
Project: Ignite
Issue Type: Bug
Reporter: Mikhail Pochatkin
Assignee: Mikhail Pochatkin
Currently we have shaded fastutil dependency in ignite-core module but this
dependency currently used in many other modules, for example ignite-catalog.
So, this is a reason of ClassCastException in case when we have Intersection
between ignite-core utils methods and other modules import
{code:java}
Caused by: org.apache.ignite.lang.IgniteException: IGN-CMN-65535
TraceId:6215b511-da5d-40de-a967-6039fa137766 Unable to start [node=node1]
at
org.apache.ignite.internal.app.IgniteImpl.handleStartException(IgniteImpl.java:1046)
at
org.apache.ignite.internal.app.IgniteImpl.lambda$start$27(IgniteImpl.java:1023)
at
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
... 5 more
Caused by: java.util.concurrent.CompletionException:
java.lang.ClassCastException: class
org.apache.shaded.it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap cannot be
cast to class it.unimi.dsi.fastutil.ints.Int2ObjectMap
(org.apache.shaded.it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap and
it.unimi.dsi.fastutil.ints.Int2ObjectMap are in unnamed module of loader 'app')
at
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at
java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
... 4 more
Caused by: java.lang.ClassCastException: class
org.apache.shaded.it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap cannot be
cast to class it.unimi.dsi.fastutil.ints.Int2ObjectMap
(org.apache.shaded.it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap and
it.unimi.dsi.fastutil.ints.Int2ObjectMap are in unnamed module of loader 'app')
at java.base/java.util.function.Function.lambda$andThen$1(Function.java:88)
at
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:582)
at org.apache.ignite.internal.catalog.Catalog.<init>(Catalog.java:110)
at
org.apache.ignite.internal.catalog.CatalogManagerImpl.start(CatalogManagerImpl.java:170)
at
org.apache.ignite.internal.app.LifecycleManager.startComponent(LifecycleManager.java:79)
at
org.apache.ignite.internal.app.LifecycleManager.startComponents(LifecycleManager.java:91)
at
org.apache.ignite.internal.app.IgniteImpl.lambda$start$22(IgniteImpl.java:963)
at
java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
... 4 more {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)