Vyacheslav Koptilin created IGNITE-19534:
--------------------------------------------
Summary: Duplicating error code in the message.
Key: IGNITE-19534
URL: https://issues.apache.org/jira/browse/IGNITE-19534
Project: Ignite
Issue Type: Bug
Reporter: Vyacheslav Koptilin
Assignee: Vyacheslav Koptilin
Fix For: 3.0.0-beta2
Error code can be duplicated in the message as follows:
{code:java}
org.apache.ignite.sql.SqlException: IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49 IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49 IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49
at
[email protected]/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
[email protected]/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
[email protected]/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
[email protected]/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at app//org.apache.ignite.lang.IgniteException.wrap(IgniteException.java:276)
at app//org.apache.ignite.sql.Session.execute(Session.java:60)
at
app//org.apache.ignite.internal.sqllogic.ScriptContext.executeQuery(ScriptContext.java:89)
at
app//org.apache.ignite.internal.sqllogic.Statement.execute(Statement.java:108)
... 7 more
Caused by: org.apache.ignite.sql.SqlException: IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49 IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49
...
... 3 more
Caused by: org.apache.ignite.sql.SqlException: IGN-SQL-20
TraceId:8c53228d-6463-4dec-8ef6-7f7a19baab49
at
app//org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl.convertDdlException(ExecutionServiceImpl.java:311)
at
app//org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl.lambda$executeDdl$8(ExecutionServiceImpl.java:289)
... 12 more
Caused by: java.util.concurrent.TimeoutException
... 8 more
{code}
It seems to me, this behavior is caused by `IgniteException.wrap`.
By the way, this method is a good candidate to be moved to `ExceptionUtils`
along with `IgniteException.getIgniteErrorCode()`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)