[
https://issues.apache.org/jira/browse/IGNITE-20500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Evgeny Stanilovsky updated IGNITE-20500:
----------------------------------------
Fix Version/s: 3.2
(was: 3.1)
> NullPointerException when restarting node with custom region
> ------------------------------------------------------------
>
> Key: IGNITE-20500
> URL: https://issues.apache.org/jira/browse/IGNITE-20500
> Project: Ignite
> Issue Type: Bug
> Components: general
> Reporter: Tiago Marques Godinho
> Priority: Major
> Labels: ignite-3
> Fix For: 3.2
>
> Attachments: assert, full
>
>
> I've encountered this exception when restarting a node with data on a custom
> region:
> {code:java}
> SEVERE: Error starting tables
> ...
> Caused by: java.lang.NullPointerException
> at
> org.apache.ignite.internal.storage.pagememory.PersistentPageMemoryTableStorage.ensurePartitionFilePageStoreExists(PersistentPageMemoryTableStorage.java:144)
> at
> org.apache.ignite.internal.storage.pagememory.PersistentPageMemoryTableStorage.getOrCreatePartitionMetaOnCreatePartition(PersistentPageMemoryTableStorage.java:500)
> at
> org.apache.ignite.internal.storage.pagememory.PersistentPageMemoryTableStorage.createMvPartitionStorage(PersistentPageMemoryTableStorage.java:107)
> at
> org.apache.ignite.internal.storage.pagememory.PersistentPageMemoryTableStorage.createMvPartitionStorage(PersistentPageMemoryTableStorage.java:54)
> at
> org.apache.ignite.internal.storage.pagememory.AbstractPageMemoryTableStorage.lambda$createMvPartition$4(AbstractPageMemoryTableStorage.java:164)
> at
> org.apache.ignite.internal.storage.util.MvPartitionStorages.lambda$create$1(MvPartitionStorages.java:121)
> at
> java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:680)
> ... 44 more {code}
>
> Steps to reproduce:
> # Start a cluster from scratch (can be a single node).
> # Initialise the cluster.
> # Update the cluster configurations with a custom region:
> {code:java}
> {"aipersist":{"regions":[{"memoryAllocator":{"type":"unsafe"},"name":"persistentDataRegionCfg","replacementMode":"CLOCK","size":6871947673}]}}{code}
> # Create a Distribution Zone on that data region:
> {code:java}
> CREATE ZONE MY_ZONE ENGINE aipersist WITH
> DATAREGION='persistentDataRegionCfg', REPLICAS=1;{code}
> # Shutdown the node using SIGINT
> # Start the node again
> Tested with:
> [d7970190|https://github.com/apache/ignite-3/commit/d7970190a48b999d0adddfd5906d691b050576d2]
> Notes:
> * Added [^full]
> * Added [^assert] when assertions where enabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)