mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-23 13:21:21 +02:00
[ONOS-6487] Catch and log exceptions that occur during replication in ECM
Change-Id: I27135677af1331f1782739adc7eeb517a623e119
This commit is contained in:
parent
b6e0e914ce
commit
e0fae910b1
@ -922,6 +922,7 @@ public class EventuallyConsistentMapImpl<K, V>
|
|||||||
items.forEach(item -> map.compute(item.key(), (key, existing) ->
|
items.forEach(item -> map.compute(item.key(), (key, existing) ->
|
||||||
item.isNewerThan(existing) ? item : existing));
|
item.isNewerThan(existing) ? item : existing));
|
||||||
communicationExecutor.execute(() -> {
|
communicationExecutor.execute(() -> {
|
||||||
|
try {
|
||||||
clusterCommunicator.unicast(ImmutableList.copyOf(map.values()),
|
clusterCommunicator.unicast(ImmutableList.copyOf(map.values()),
|
||||||
updateMessageSubject,
|
updateMessageSubject,
|
||||||
serializer::encode,
|
serializer::encode,
|
||||||
@ -931,6 +932,9 @@ public class EventuallyConsistentMapImpl<K, V>
|
|||||||
log.debug("Failed to send to {}", peer, error);
|
log.debug("Failed to send to {}", peer, error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.warn("Failed to send to {}", peer, e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user