shishkovilja commented on code in PR #12574:
URL: https://github.com/apache/ignite/pull/12574#discussion_r2730985243
##########
modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/messages/TcpDiscoveryAbstractTraceableMessage.java:
##########
@@ -67,6 +74,21 @@ public Object readResolve() {
return this;
}
+ /** @return {@link #spanContainer}'s bytes. */
+ public @Nullable byte[] spanBytes() {
+ return spanContainer == null ? null :
spanContainer.serializedSpanBytes();
+ }
+
+ /** @param spanBytes {@link #spanContainer}'s bytes. */
+ public void spanBytes(@Nullable byte[] spanBytes) {
+ if (spanBytes == null)
+ return;
+
+ readResolve();
Review Comment:
`readResolve` ensures, that `SpanContainer` will be **always** initialized
during deserialization via Java Deserialization.
I suggest, to call it in the beginning of method.
--
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]