Reduce log level of frequent benign exception
Change-Id: Ib4b7c760fa2c494a07168318b3a078cf25c1ce91
Showing
1 changed file
with
24 additions
and
25 deletions
... | @@ -15,25 +15,9 @@ | ... | @@ -15,25 +15,9 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.store.cluster.impl; | 16 | package org.onosproject.store.cluster.impl; |
17 | 17 | ||
18 | -import static com.google.common.base.Preconditions.checkArgument; | 18 | +import com.google.common.collect.ImmutableSet; |
19 | -import static com.google.common.base.Preconditions.checkNotNull; | 19 | +import com.google.common.collect.Maps; |
20 | -import static org.onlab.util.Tools.groupedThreads; | 20 | +import com.hazelcast.util.AddressUtil; |
21 | -import static org.slf4j.LoggerFactory.getLogger; | ||
22 | - | ||
23 | -import java.io.File; | ||
24 | -import java.io.IOException; | ||
25 | -import java.net.InetAddress; | ||
26 | -import java.net.NetworkInterface; | ||
27 | -import java.net.SocketException; | ||
28 | -import java.util.Enumeration; | ||
29 | -import java.util.Map; | ||
30 | -import java.util.Set; | ||
31 | -import java.util.concurrent.ExecutorService; | ||
32 | -import java.util.concurrent.Executors; | ||
33 | -import java.util.concurrent.ScheduledExecutorService; | ||
34 | -import java.util.concurrent.TimeUnit; | ||
35 | -import java.util.stream.Collectors; | ||
36 | - | ||
37 | import org.apache.felix.scr.annotations.Activate; | 21 | import org.apache.felix.scr.annotations.Activate; |
38 | import org.apache.felix.scr.annotations.Component; | 22 | import org.apache.felix.scr.annotations.Component; |
39 | import org.apache.felix.scr.annotations.Deactivate; | 23 | import org.apache.felix.scr.annotations.Deactivate; |
... | @@ -49,17 +33,32 @@ import org.onosproject.cluster.ClusterEvent; | ... | @@ -49,17 +33,32 @@ import org.onosproject.cluster.ClusterEvent; |
49 | import org.onosproject.cluster.ClusterStore; | 33 | import org.onosproject.cluster.ClusterStore; |
50 | import org.onosproject.cluster.ClusterStoreDelegate; | 34 | import org.onosproject.cluster.ClusterStoreDelegate; |
51 | import org.onosproject.cluster.ControllerNode; | 35 | import org.onosproject.cluster.ControllerNode; |
52 | -import org.onosproject.cluster.DefaultControllerNode; | ||
53 | import org.onosproject.cluster.ControllerNode.State; | 36 | import org.onosproject.cluster.ControllerNode.State; |
37 | +import org.onosproject.cluster.DefaultControllerNode; | ||
54 | import org.onosproject.cluster.NodeId; | 38 | import org.onosproject.cluster.NodeId; |
55 | import org.onosproject.store.AbstractStore; | 39 | import org.onosproject.store.AbstractStore; |
56 | import org.onosproject.store.serializers.KryoNamespaces; | 40 | import org.onosproject.store.serializers.KryoNamespaces; |
57 | import org.onosproject.store.serializers.KryoSerializer; | 41 | import org.onosproject.store.serializers.KryoSerializer; |
58 | import org.slf4j.Logger; | 42 | import org.slf4j.Logger; |
59 | 43 | ||
60 | -import com.google.common.collect.ImmutableSet; | 44 | +import java.io.File; |
61 | -import com.google.common.collect.Maps; | 45 | +import java.io.IOException; |
62 | -import com.hazelcast.util.AddressUtil; | 46 | +import java.net.InetAddress; |
47 | +import java.net.NetworkInterface; | ||
48 | +import java.net.SocketException; | ||
49 | +import java.util.Enumeration; | ||
50 | +import java.util.Map; | ||
51 | +import java.util.Set; | ||
52 | +import java.util.concurrent.ExecutorService; | ||
53 | +import java.util.concurrent.Executors; | ||
54 | +import java.util.concurrent.ScheduledExecutorService; | ||
55 | +import java.util.concurrent.TimeUnit; | ||
56 | +import java.util.stream.Collectors; | ||
57 | + | ||
58 | +import static com.google.common.base.Preconditions.checkArgument; | ||
59 | +import static com.google.common.base.Preconditions.checkNotNull; | ||
60 | +import static org.onlab.util.Tools.groupedThreads; | ||
61 | +import static org.slf4j.LoggerFactory.getLogger; | ||
63 | 62 | ||
64 | @Component(immediate = true) | 63 | @Component(immediate = true) |
65 | @Service | 64 | @Service |
... | @@ -292,7 +291,7 @@ public class DistributedClusterStore | ... | @@ -292,7 +291,7 @@ public class DistributedClusterStore |
292 | try { | 291 | try { |
293 | messagingService.sendAsync(remoteEp, HEARTBEAT_MESSAGE, messagePayload); | 292 | messagingService.sendAsync(remoteEp, HEARTBEAT_MESSAGE, messagePayload); |
294 | } catch (IOException e) { | 293 | } catch (IOException e) { |
295 | - log.debug("Sending heartbeat to {} failed", remoteEp, e); | 294 | + log.trace("Sending heartbeat to {} failed", remoteEp, e); |
296 | } | 295 | } |
297 | } | 296 | } |
298 | 297 | ||
... | @@ -345,4 +344,4 @@ public class DistributedClusterStore | ... | @@ -345,4 +344,4 @@ public class DistributedClusterStore |
345 | public DateTime getLastUpdated(NodeId nodeId) { | 344 | public DateTime getLastUpdated(NodeId nodeId) { |
346 | return nodeStateLastUpdatedTimes.get(nodeId); | 345 | return nodeStateLastUpdatedTimes.get(nodeId); |
347 | } | 346 | } |
348 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
347 | +} | ... | ... |
-
Please register or login to post a comment