Brian O'Connor

Reducing log level for peer update in IntentStore map

Change-Id: I0cc93784e2ca7dbb8c743840b6427f49a715b554
......@@ -353,6 +353,9 @@ public class EventuallyConsistentMapImpl<K, V>
if (value.isPresent() && existing != null && existing.isAlive()) {
valueMatches = Objects.equals(value.get(), existing.get());
}
if (existing == null) {
log.debug("ECMap Remove: Existing value for key {} is already null", k);
}
updated.set(valueMatches && (existing == null || tombstone.isNewerThan(existing)));
if (updated.get()) {
previousValue.set(existing);
......
......@@ -194,7 +194,7 @@ public class GossipIntentStore
NodeId master = partitionService.getLeader(key);
NodeId origin = (data != null) ? data.origin() : null;
if (master == null || origin == null) {
log.warn("Intent {} has no home; master = {}, origin = {}",
log.debug("Intent {} missing master and/or origin; master = {}, origin = {}",
key, master, origin);
}
......@@ -208,7 +208,7 @@ public class GossipIntentStore
} else if (isOrigin) {
return master != null ? ImmutableList.of(master) : getRandomNode();
} else {
log.warn("Not master or origin for intent {}", key);
log.warn("No master or origin for intent {}", key);
return master != null ? ImmutableList.of(master) : getRandomNode();
}
}
......