[ 
https://issues.apache.org/jira/browse/IGNITE-8159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433297#comment-16433297
 ] 

Pavel Konstantinov commented on IGNITE-8159:
--------------------------------------------

Test failed. We need to print out a readable error message with a corresponding 
error code instead of this
{code}
PS C:\work\master\bin> .\control.bat --baseline add 121212
Warning: the command will perform changes in baseline.
Press 'y' to continue...y
Failed to add nodes to baseline.
Error: Failed to reduce job results due to undeclared user exception 
[task=org.apache.ignite.internal.visor.baseline.VisorBaselineTask@71e96f24, 
err=class org.apache.ignite.compute.ComputeUserUndeclaredException: Failed to 
execute job due to unexpected runtime exception 
[jobId=3064672b261-df38f2fd-ca81-423c-b4c3-dd002a77f0af, ses=GridJobSessionImpl 
[ses=GridTaskSessionImpl 
[taskName=org.apache.ignite.internal.visor.baseline.VisorBaselineTask, 
dep=LocalDeployment [super=GridDeployment [ts=1523412519601, depMode=SHARED, 
clsLdr=sun.misc.Launcher$AppClassLoader@764c12b6, 
clsLdrId=ba54672b261-df38f2fd-ca81-423c-b4c3-dd002a77f0af, userVer=0, loc=true, 
sampleClsName=java.lang.String, pendingUndeploy=false, undeployed=false, 
usage=0]], 
taskClsName=org.apache.ignite.internal.visor.baseline.VisorBaselineTask, 
sesId=2064672b261-df38f2fd-ca81-423c-b4c3-dd002a77f0af, 
startTime=1523412552937, endTime=9223372036854775807, 
taskNodeId=df38f2fd-ca81-423c-b4c3-dd002a77f0af, 
clsLdr=sun.misc.Launcher$AppClassLoader@764c12b6, closed=false, cpSpi=null, 
failSpi=null, loadSpi=null, usage=1, fullSup=false, internal=true, 
topPred=null, subjId=df38f2fd-ca81-423c-b4c3-dd002a77f0af, mapFut=IgniteFuture 
[orig=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, 
hash=1531276047]], execName=null], 
jobId=3064672b261-df38f2fd-ca81-423c-b4c3-dd002a77f0af], err=Node not found for 
consistent ID: 121212]]
{code}

> control.sh Failed with NPE in case of adding not online node in base line
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-8159
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8159
>             Project: Ignite
>          Issue Type: Task
>    Affects Versions: 2.4
>            Reporter: Alexey Kuznetsov
>            Assignee: Alexey Kuznetsov
>            Priority: Major
>             Fix For: 2.5
>
>
> {code}
> Caused by: java.lang.NullPointerException
>  at 
> org.apache.ignite.internal.visor.baseline.VisorBaselineTask$VisorBaselineJob.currentBaseLine(VisorBaselineTask.java:100)
>  at 
> org.apache.ignite.internal.visor.baseline.VisorBaselineTask$VisorBaselineJob.add(VisorBaselineTask.java:148)
>  at 
> org.apache.ignite.internal.visor.baseline.VisorBaselineTask$VisorBaselineJob.run(VisorBaselineTask.java:203)
>  at 
> org.apache.ignite.internal.visor.baseline.VisorBaselineTask$VisorBaselineJob.run(VisorBaselineTask.java:52)
>  at org.apache.ignite.internal.visor.VisorJob.execute(VisorJob.java:69)
>  at 
> org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:566)
>  at 
> org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6623)
>  at 
> org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:560)
>  at 
> org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:489)
>  at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
>  at 
> org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1123)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(GridTaskWorker.java:1407)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskWorker.processMappedJobs(GridTaskWorker.java:660)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskWorker.body(GridTaskWorker.java:532)
>  at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:760)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:509)
>  at 
> org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:489)
>  at 
> org.apache.ignite.internal.processors.rest.handlers.task.GridTaskCommandHandler.handleAsyncUnsafe(GridTaskCommandHandler.java:227)
>  ... 8 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to