You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Uttsel (Jira)" <ji...@apache.org> on 2023/03/15 15:42:00 UTC

[jira] [Updated] (IGNITE-19042) NPE on first scale up topology event

     [ https://issues.apache.org/jira/browse/IGNITE-19042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Uttsel updated IGNITE-19042:
-----------------------------------
    Description: 
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.

  was:
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.


> 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
>            Priority: Major
>              Labels: ignite-3
>
> 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)