tkalkirill commented on code in PR #5047:
URL: https://github.com/apache/ignite-3/pull/5047#discussion_r1919900614
##########
modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java:
##########
@@ -654,4 +654,14 @@ public static class Marshalling {
/** Unmarshalling error. */
public static final int UNMARSHALLING_ERR =
MARSHALLING_ERR_GROUP.registerErrorCode((short) 3);
}
+
+ /** REST service error group. */
+ @ErrorCodeGroup
+ public static class Rest {
+ /** REST service error group. */
+ public static final ErrorGroup REST_ERR_GROUP = registerGroup("REST",
(short) 23);
+
+ /** Cluster has not yet been initialized or the node is in the process
of stopping. */
+ public static final int CLUSTER_NOT_INIT_ERR =
REST_ERR_GROUP.registerErrorCode((short) 1);
Review Comment:
This is an error from group `Embedded`, as far as I can see this error can
appear if you use Ignite (`org.apache.ignite.IgniteServer#initClusterAsync`)
directly and call cluster initialization from the client code.
The error code I suggested will be from the REST service, which is a little
different in my opinion.
What is your opinion?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]