Yuta HIGUCHI

Dist.FlowRuleStore: return empty when no master

Change-Id: I377003b5e1631ead05ab3d32bf670f52372de55d
......@@ -284,9 +284,10 @@ public class DistributedFlowRuleStore
if (!replicaInfo.master().isPresent()) {
log.warn("No master for {}", deviceId);
// TODO: revisit if this should be returning empty collection.
// TODO: revisit if this should be returning empty collection or throwing exception.
// FIXME: throw a FlowStoreException
throw new RuntimeException("No master for " + deviceId);
//throw new RuntimeException("No master for " + deviceId);
return Collections.emptyList();
}
if (replicaInfo.master().get().equals(clusterService.getLocalNode().id())) {
......