Hi all,
I am trying to setup Apache Ignite with persistence enabled and facing a
deserialization failure when executing broadcast method with data storage
persistence enabled.
The following code will recreate this problem:
public static void main(String[] args) throws IOException {
final String CONFIG_PATH = "./config/example-ignite.xml";
Ignition.setClientMode(true);
try (Ignite ignite = Ignition.start(CONFIG_PATH)) {
ignite.active(true);
IgniteCompute compute =
ignite.compute(ignite.cluster().forRemotes());
compute.broadcast(() -> System.out.println("Hello Node: " +
ignite.cluster().localNode().id()));
}
}
Persistence configuration used in example-default.xml (everything else is
set to default)
<!-- Enabling Apache Ignite native persistence. -->
<property name="dataStorageConfiguration">
<bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
<property name="defaultDataRegionConfiguration">
<bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="name" value="Default_Region"/>
<property name="persistenceEnabled" value="true"/>
<property name="initialSize" value="#{100L * 1024 *
1024}"/>
<property name="maxSize" value="#{4L * 1024 * 1024
* 1024}"/>
</bean>
</property>
</bean>
</property>
I am using Apache Ignite 2.4.0.
Your help for fixing this issue is greatly appreciated.
Thank You
-Supun