ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [25/39] ignite git commit: IGNITE-1047 - Fixed warning message in marshaller context
Date Mon, 07 Sep 2015 22:50:37 GMT
IGNITE-1047 - Fixed warning message in marshaller context


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

Branch: refs/heads/ignite-843
Commit: a58a16a951da4095b0fac0191fc009264a5bc858
Parents: 38baf59
Author: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Authored: Fri Sep 4 15:08:18 2015 -0700
Committer: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Committed: Fri Sep 4 15:08:18 2015 -0700

----------------------------------------------------------------------
 .../ignite/internal/MarshallerContextImpl.java  | 31 +++++++++++---------
 1 file changed, 17 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a58a16a9/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java
index 52d3b1e..5c9b54f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/MarshallerContextImpl.java
@@ -17,17 +17,6 @@
 
 package org.apache.ignite.internal;
 
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.List;
-import java.util.concurrent.CountDownLatch;
-import javax.cache.event.CacheEntryEvent;
-import javax.cache.event.CacheEntryListenerException;
-import javax.cache.event.CacheEntryUpdatedListener;
 import org.apache.ignite.IgniteCheckedException;
 import org.apache.ignite.IgniteLogger;
 import org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException;
@@ -37,6 +26,18 @@ import org.apache.ignite.internal.util.typedef.F;
 import org.apache.ignite.internal.util.typedef.internal.U;
 import org.apache.ignite.plugin.PluginProvider;
 
+import javax.cache.event.CacheEntryEvent;
+import javax.cache.event.CacheEntryListenerException;
+import javax.cache.event.CacheEntryUpdatedListener;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.Writer;
+import java.util.List;
+import java.util.concurrent.CountDownLatch;
+
 /**
  * Marshaller context implementation.
  */
@@ -122,8 +123,10 @@ public class MarshallerContextImpl extends MarshallerContextAdapter {
         }
         catch (CachePartialUpdateCheckedException | GridCacheTryPutFailedException e) {
             if (++failedCnt > 10) {
-                U.quietAndWarn(log, e, "Failed to register marshalled class for more than
10 times in a row " +
-                    "(may affect performance).");
+                String msg = "Failed to register marshalled class for more than 10 times
in a row " +
+                    "(may affect performance).";
+
+                U.quietAndWarn(log, msg, msg);
 
                 failedCnt = 0;
             }
@@ -206,4 +209,4 @@ public class MarshallerContextImpl extends MarshallerContextAdapter {
             }
         }
     }
-}
\ No newline at end of file
+}


Mime
View raw message