You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/12 12:34:06 UTC

ignite git commit: .NET - debug binary object array

Repository: ignite
Updated Branches:
  refs/heads/ignite-3477-debug 93e852bf3 -> 0e821c8bd


.NET - debug binary object array


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/0e821c8b
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/0e821c8b
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/0e821c8b

Branch: refs/heads/ignite-3477-debug
Commit: 0e821c8bdede25e84eb94d543ff8e871cb804729
Parents: 93e852b
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Wed Apr 12 15:34:32 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Wed Apr 12 15:34:32 2017 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/binary/BinaryObjectExImpl.java | 2 ++
 .../processors/cache/database/freelist/FreeListImpl.java      | 2 ++
 .../internal/processors/platform/cache/PlatformCache.java     | 7 ++++++-
 3 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0e821c8b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectExImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectExImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectExImpl.java
index ae9a160..c8adf9f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectExImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectExImpl.java
@@ -227,6 +227,8 @@ public abstract class BinaryObjectExImpl implements BinaryObjectEx {
             buf.a(']');
         }
 
+        buf.a("arr=").a(Arrays.toString(array()));
+
         return buf.toString();
     }
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/0e821c8b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/freelist/FreeListImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/freelist/FreeListImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/freelist/FreeListImpl.java
index 3ca5478..5b6448d 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/freelist/FreeListImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/freelist/FreeListImpl.java
@@ -457,6 +457,8 @@ public class FreeListImpl extends PagesList implements FreeList, ReuseList {
     @Override public void insertDataRow(CacheDataRow row) throws IgniteCheckedException {
         int rowSize = getRowSize(row);
 
+        U.debug("Row size for insert: " + rowSize + ", row=" + row);
+
         int written = 0;
 
         do {

http://git-wip-us.apache.org/repos/asf/ignite/blob/0e821c8b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
index a60d364..5e40994 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/cache/PlatformCache.java
@@ -57,6 +57,7 @@ import org.apache.ignite.internal.processors.platform.utils.PlatformWriterClosur
 import org.apache.ignite.internal.util.GridConcurrentFactory;
 import org.apache.ignite.internal.util.typedef.C1;
 import org.apache.ignite.internal.util.typedef.X;
+import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.lang.IgniteBiInClosure;
 import org.apache.ignite.lang.IgniteFuture;
 import org.apache.ignite.transactions.TransactionDeadlockException;
@@ -402,7 +403,11 @@ public class PlatformCache extends PlatformAbstractTarget {
         try {
             switch (type) {
                 case OP_PUT:
-                    cache.put(reader.readObjectDetached(), reader.readObjectDetached());
+                    Object val0 = reader.readObjectDetached();
+
+                    U.debug("Read object for put: " + val0);
+
+                    cache.put(reader.readObjectDetached(), val0);
 
                     return TRUE;