Sergey Uttsel created IGNITE-19042:
--------------------------------------

             Summary: NPE on first scale up topology event
                 Key: IGNITE-19042
                 URL: https://issues.apache.org/jira/browse/IGNITE-19042
             Project: Ignite
          Issue Type: Bug
            Reporter: Sergey Uttsel
            Assignee: Sergey Uttsel


h3. Motivation

NullPointerException in log on start the first node in the cluster if 
DistributionZoneConfigurationSchema#dataNodesAutoAdjustScaleUp and 
DistributionZoneConfigurationSchema#dataNodesAutoAdjustScaleDown are 0.

How to reproduce:

Set DistributionZoneConfigurationSchema#dataNodesAutoAdjustScaleUp = 0 and 
DistributionZoneConfigurationSchema#dataNodesAutoAdjustScaleDown = 0.

Start the test which starts the node. For example ItTablesApiTest#testAddIndex.

See NullPointerException in the log.
{code:java}
Caused by: java.lang.NullPointerException       at 
java.base/java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:108) at 
org.apache.ignite.internal.util.ByteUtils.fromBytes(ByteUtils.java:152)      at 
org.apache.ignite.internal.distributionzones.DistributionZoneManager.lambda$saveDataNodesToMetaStorageOnScaleUp$32(DistributionZoneManager.java:1096)
        at 
org.apache.ignite.internal.util.IgniteUtils.inBusyLock(IgniteUtils.java:870) at 
org.apache.ignite.internal.distributionzones.DistributionZoneManager.lambda$saveDataNodesToMetaStorageOnScaleUp$33(DistributionZoneManager.java:1090)
        at 
java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
     ... 13 more {code}
The root cause is zoneDataNodesKey, zoneScaleUpChangeTriggerKey, 
zoneScaleDownChangeTriggerKey are not initialized of zones.

Definition of Done

zoneDataNodesKey, zoneScaleUpChangeTriggerKey, zoneScaleDownChangeTriggerKey 
are initialized on the node start.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to