You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by mr...@apache.org on 2016/04/30 15:00:15 UTC
usergrid git commit: Update logging statements to be trace level.
Repository: usergrid
Updated Branches:
refs/heads/release-2.1.1 1284db767 -> 46cd401de
Update logging statements to be trace level.
Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/46cd401d
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/46cd401d
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/46cd401d
Branch: refs/heads/release-2.1.1
Commit: 46cd401deac94235982991ca218591fceaa43264
Parents: 1284db7
Author: Michael Russo <mr...@apigee.com>
Authored: Sat Apr 30 21:00:09 2016 +0800
Committer: Michael Russo <mr...@apigee.com>
Committed: Sat Apr 30 21:00:09 2016 +0800
----------------------------------------------------------------------
.../impl/shard/impl/NodeShardAllocationImpl.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/usergrid/blob/46cd401d/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
index 0c65912..47b630f 100644
--- a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
+++ b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
@@ -94,7 +94,6 @@ public class NodeShardAllocationImpl implements NodeShardAllocation {
else {
existingShards = edgeShardSerialization.getShardMetaData( scope, maxShardId, directedEdgeMeta );
- //logger.info("existing shards has something: {}", existingShards.hasNext());
/**
* We didn't get anything out of cassandra, so we need to create the minimum shard
@@ -113,8 +112,6 @@ public class NodeShardAllocationImpl implements NodeShardAllocation {
}
}
- //logger.info("getShards existing shards: {}", existingShards);
-
return new ShardEntryGroupIterator( existingShards, graphFig.getShardMinDelta(), shardGroupCompaction, scope,
directedEdgeMeta );
}
@@ -240,7 +237,9 @@ public class NodeShardAllocationImpl implements NodeShardAllocation {
final Shard newShard = new Shard( marked.getTimestamp(), createTimestamp, false );
- logger.info( "Allocating new shard {} for edge meta {}", newShard, directedEdgeMeta );
+ if(logger.isTraceEnabled()) {
+ logger.trace("Allocating new shard {} for edge meta {}", newShard, directedEdgeMeta);
+ }
final MutationBatch batch = this.edgeShardSerialization.writeShardMeta( scope, newShard, directedEdgeMeta );