[jira] [Updated] (IGNITE-25122) Improve node config registry error handling

2025-04-14 Thread Vadim Pakhnushev (Jira)


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

Vadim Pakhnushev updated IGNITE-25122:
--
Description: 
When cluster is in the process of initialization and node config registry 
triggers an update, it can fail and log the following:
{noformat}
Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
because the return value of 
"org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:37)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:21)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.RegistryImplBase.lambda$updateState$0(RegistryImplBase.java:37)
at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
 ~[?:?]
... 6 more
{noformat}

  was:
When cluster is in the process of initialization and node config registry 
triggers an update, it can fail and log the following:
{noformat}
Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
because the return value of 
"org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null 
  
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:37)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:21)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.RegistryImplBase.lambda$updateState$0(RegistryImplBase.java:37)
at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
 ~[?:?] 


... 6 more  



{noformat}


> Improve node config registry error handling
> ---
>
> Key: IGNITE-25122
> URL: https://issues.apache.org/jira/browse/IGNITE-25122
> Project: Ignite
>  Issue Type: Bug
>  Components: cli
>Reporter: Vadim Pakhnushev
>Assignee: Vadim Pakhnushev
>Priority: Major
>  Labels: ignite-3
>
> When cluster is in the process of initialization and node config registry 
> triggers an update, it can fail and log the following:
> {noformat}
> Caused by: java.lang.NullPointerException: Cannot invoke 
> "org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
> because the return value of 
> "org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null
>   at 
> org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:37)
>   at 
> org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:21)
>   at 
> org.apache.ignite.internal.cli.core.repl.registry.impl.RegistryImplBase.lambda$updateState$0(RegistryImplBase.java:37)
>   at 
> java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
>  ~[?:?]
>   ... 6 more
> {noformat}



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


[jira] [Updated] (IGNITE-25122) Improve node config registry error handling

2025-04-14 Thread Vadim Pakhnushev (Jira)


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

Vadim Pakhnushev updated IGNITE-25122:
--
Description: 
When cluster is in the process of initialization and node config registry 
triggers an update, it can fail and log the following:
{noformat}
Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
because the return value of 
"org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null 
  
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:37)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:21)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.RegistryImplBase.lambda$updateState$0(RegistryImplBase.java:37)
at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
 ~[?:?] 


... 6 more  



{noformat}

  was:
When cluster is in the process of initialization and node config registry 
triggers an update, it can fail and log the following:
{noformat}
java.util.concurrent.CompletionException: java.lang.NullPointerException: 
Cannot invoke 
"org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
because the return value of 
"org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null
at 
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
 ~[?:?] 

 
at 
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
 [?:?]  

   
at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
 [?:?]  


at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
 [?:?]  

   
at 
java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?] 


 
at 
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
 [?:?]  

   
at 
java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]  


 
at 
java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) 
[?:?]   

   
at 
java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
 [?:?]  

   
Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.ignite.internal.cli.call.configuration.JsonString.getValue()" 
because the return value of 
"org.apache.ignite.internal.cli.core.call.DefaultCallOutput.body()" is null 
  
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistryImpl.doGetState(NodeConfigRegistryImpl.java:37)
at 
org.apache.ignite.internal.cli.core.repl.registry.impl.NodeConfigRegistry