ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3055610321


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/LockKey.java:
##########
@@ -88,6 +89,14 @@ public int hashCode() {
 
     @Override
     public String toString() {
-        return S.toString(LockKey.class, this, "ctx", contextId, "key", key);
+        return S.toString(LockKey.class, this, "ctx", contextId, "key", 
dump(key));
+    }
+
+    private static String dump(Object key) {
+        if (key instanceof ByteBuffer) {
+            return Arrays.toString(((ByteBuffer) key).array());

Review Comment:
   Swtiched to `byteBufferToByteArray`. 
   This should be enough for dump, because it's not called on hot path.
   If we need a separate ticket, I suggest to create it, but it shouldn't be 
the part of this PR.



-- 
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]

Reply via email to