usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [29/31] incubator-usergrid git commit: Changed log level to warn to catch issues with version mismatch in logging
Date Mon, 09 Mar 2015 15:25:42 GMT
Changed log level to warn to catch issues with version mismatch in logging


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/8f67e92c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/8f67e92c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/8f67e92c

Branch: refs/heads/USERGRID-405
Commit: 8f67e92cff25f11fe759bfa2283537acca34788a
Parents: bcc5228
Author: Todd Nine <tnine@apigee.com>
Authored: Mon Mar 9 00:46:07 2015 -0600
Committer: Todd Nine <tnine@apigee.com>
Committed: Mon Mar 9 00:46:07 2015 -0600

----------------------------------------------------------------------
 .../apache/usergrid/corepersistence/results/EntityVerifier.java  | 4 ++--
 .../apache/usergrid/corepersistence/results/FilteringLoader.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8f67e92c/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/EntityVerifier.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/EntityVerifier.java
b/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/EntityVerifier.java
index a35263c..075abc4 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/EntityVerifier.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/EntityVerifier.java
@@ -85,7 +85,7 @@ public class EntityVerifier implements ResultsVerifier {
         final UUID savedVersion = savedEntity.getVersion();
 
         if ( UUIDComparator.staticCompare( savedVersion, candidateVersion ) > 0 ) {
-            logger.debug( "Stale version of Entity uuid:{} type:{}, stale v:{}, latest v:{}",
new Object[] {
+            logger.warn( "Stale version of Entity uuid:{} type:{}, stale v:{}, latest v:{}",
new Object[] {
                     entityId.getUuid(), entityId.getType(), candidateVersion, savedEntity
             } );
 
@@ -96,7 +96,7 @@ public class EntityVerifier implements ResultsVerifier {
         final Optional<org.apache.usergrid.persistence.model.entity.Entity> entity
= savedEntity.getEntity();
 
         if ( !entity.isPresent() ) {
-            logger.warn( "Entity uuid:{} version v:{} is deleted but indexed, this is a bug
", 
+            logger.warn( "Entity uuid:{} version v:{} is deleted but indexed, this is a bug
",
                     entityId.getUuid(), savedEntity.getEntity() );
             return false;
         }

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8f67e92c/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/FilteringLoader.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/FilteringLoader.java
b/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/FilteringLoader.java
index 7848be5..1afd76b 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/FilteringLoader.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/results/FilteringLoader.java
@@ -147,7 +147,7 @@ public class FilteringLoader implements ResultsLoader {
             if ( UUIDComparator.staticCompare( currentVersion, previousMaxVersion ) >
0 ) {
 
                 //de-index it
-                logger.debug( "Stale version of Entity uuid:{} type:{}, stale v:{}, latest
v:{}",
+                logger.warn( "Stale version of Entity uuid:{} type:{}, stale v:{}, latest
v:{}",
                     new Object[] {
                         entityId.getUuid(),
                         entityId.getType(),


Mime
View raw message