ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dma...@apache.org
Subject ignite git commit: Printing "Failed to register marshalled class" warning in the versbose mode only
Date Sun, 06 Dec 2015 08:38:34 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1.5 3d585d5a5 -> 8033bc46d


Printing "Failed to register marshalled class" warning in the versbose mode only


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

Branch: refs/heads/ignite-1.5
Commit: 8033bc46df9087971e72187ff75557749cee3f7b
Parents: 3d585d5
Author: Denis Magda <dmagda@gridgain.com>
Authored: Sun Dec 6 11:38:17 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Sun Dec 6 11:38:17 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/MarshallerContextImpl.java     | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8033bc46/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 5c9b54f..276cdc3 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
@@ -123,10 +123,9 @@ public class MarshallerContextImpl extends MarshallerContextAdapter {
         }
         catch (CachePartialUpdateCheckedException | GridCacheTryPutFailedException e) {
             if (++failedCnt > 10) {
-                String msg = "Failed to register marshalled class for more than 10 times
in a row " +
-                    "(may affect performance).";
-
-                U.quietAndWarn(log, msg, msg);
+                if (log.isQuiet())
+                    U.quiet(false, "Failed to register marshalled class for more than 10
times in a row " +
+                        "(may affect performance).");
 
                 failedCnt = 0;
             }


Mime
View raw message