Ilya Shishkov created IGNITE-23387:
--------------------------------------
Summary: Improve error messages of control script caused by
incompatibility
Key: IGNITE-23387
URL: https://issues.apache.org/jira/browse/IGNITE-23387
Project: Ignite
Issue Type: Task
Reporter: Ilya Shishkov
There are no backward compatibility guaranties for control script, but if you
try to connect to a cluster with older and incompatible version Ignite you will
get (in most cases) uninformative error.
{code:title=Connection error to 2.14}
[16:59:29,569][SEVERE][session=575c393e][CommandHandlerLog] Failed to perform
operation.
[16:59:29,571][SEVERE][session=575c393e][CommandHandlerLog] Connection to
cluster failed. Failed to perform request (connection failed): /127.0.0.1:11211
Control utility [ver. 2.17.0-SNAPSHOT#20240911-sha1:7f107fd9]
2024 Copyright(C) Apache Software Foundation
User: xxx
Time: 2024-10-08T16:59:29.313
Command [BASELINE] started
Arguments: --baseline
--------------------------------------------------------------------------------
Failed to perform operation.
Connection to cluster failed. Failed to perform request (connection failed):
/127.0.0.1:11211
Command [BASELINE] finished with code: 2
Control utility has completed execution at: 2024-10-08T16:59:29.572
Execution time: 258 ms
{code}
{code:title=Connection error to 2.16}
[17:07:19,079][SEVERE][session=6b6d4ac5][CommandHandlerLog] Failed to perform
operation.
[17:07:19,081][SEVERE][session=6b6d4ac5][CommandHandlerLog] class
org.apache.ignite.internal.management.baseline.BaselineTaskResult cannot be
cast to class org.apache.ignite.internal.visor.VisorTaskResult
(org.apache.ignite.internal.management.baseline.BaselineTaskResult and
org.apache.ignite.internal.visor.VisorTaskResult are in unnamed module of
loader 'app')
Control utility [ver. 2.17.0-SNAPSHOT#20240911-sha1:7f107fd9]
2024 Copyright(C) Apache Software Foundation
User: xxx
Time: 2024-10-08T17:07:18.739
Command [BASELINE] started
Arguments: --baseline
--------------------------------------------------------------------------------
Failed to perform operation.
class org.apache.ignite.internal.management.baseline.BaselineTaskResult cannot
be cast to class org.apache.ignite.internal.visor.VisorTaskResult
(org.apache.ignite.internal.management.baseline.BaselineTaskResult and
org.apache.ignite.internal.visor.VisorTaskResult are in unnamed module of
loader 'app')
Command [BASELINE] finished with code: 4
Error stack trace:
java.lang.ClassCastException: class
org.apache.ignite.internal.management.baseline.BaselineTaskResult cannot be
cast to class org.apache.ignite.internal.visor.VisorTaskResult
(org.apache.ignite.internal.management.baseline.BaselineTaskResult and
org.apache.ignite.internal.visor.VisorTaskResult are in unnamed module of
loader 'app')
at
org.apache.ignite.internal.management.api.CommandUtils.execute(CommandUtils.java:787)
at
org.apache.ignite.internal.management.api.CommandInvoker.invoke(CommandInvoker.java:88)
at
org.apache.ignite.internal.commandline.CommandHandler.execute(CommandHandler.java:294)
at
org.apache.ignite.internal.commandline.CommandHandler.main(CommandHandler.java:166)
Control utility has completed execution at: 2024-10-08T17:07:19.082
Execution time: 342 ms
{code}
We should make error message more informative, eg. print that different
versions of control script and cluster are not compatible.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)