Pavel Konstantinov created IGNITE-8213:
------------------------------------------
Summary: control.sh: make a correct error message in case of
adding non-existen node to baseline
Key: IGNITE-8213
URL: https://issues.apache.org/jira/browse/IGNITE-8213
Project: Ignite
Issue Type: Improvement
Reporter: Pavel Konstantinov
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}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)