chesnokoff commented on code in PR #12671:
URL: https://github.com/apache/ignite/pull/12671#discussion_r2755399860
##########
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java:
##########
@@ -348,7 +348,10 @@ public abstract class IgniteUtils extends CommonUtils {
indexOf('.', IgniteUtils.class.getName().indexOf('.') + 1));
/** Network packet header. */
- public static final byte[] IGNITE_HEADER = intToBytes(0x00004747);
+ public static final byte[] IGNITE_HEADER_V1 = intToBytes(0x00004747);
+
+ /** Network packet header. */
+ public static final byte[] IGNITE_HEADER_V2 = intToBytes(0x0049474E);
Review Comment:
We still need a header as a simple magic prefix to quickly reject non-Ignite
or wrong-endpoint connections before we try to parse any data. IGNITE_HEADER_v2
makes the new handshake path explicit and helps keep backward compatibility and
clearer diagnostics for version mismatches.
--
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]