commit | f7554093ada8e5dea81e0bfd7092699cf6dadb44 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Sun Jul 30 15:05:51 2017 -0700 |
committer | Jordan Halterman <jordan@opennetworking.org> | Thu Aug 24 21:46:05 2017 +0000 |
tree | b41ec9f406a0af146005d6bb905c3488fce1c842 | |
parent | cfeff191173069e7f3d2639a7712ea3ba5a1106f [diff] [blame] |
[ONOS-6870] Refactor DistributedFlowRuleStore to use DocumentTree for persistence Change-Id: I5f0eccfeb0050ccf1959f3ca95bbd0a90406e4ba
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionClient.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionClient.java index 8f1ffa3..ed46a96 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionClient.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionClient.java
@@ -247,8 +247,8 @@ AtomixDocumentTree atomixDocumentTree = new AtomixDocumentTree(client.newProxyBuilder() .withName(name) .withServiceType(String.format("%s-%s", DistributedPrimitive.Type.DOCUMENT_TREE.name(), ordering)) - .withReadConsistency(ReadConsistency.SEQUENTIAL) - .withCommunicationStrategy(CommunicationStrategy.ANY) + .withReadConsistency(ReadConsistency.LINEARIZABLE) + .withCommunicationStrategy(CommunicationStrategy.LEADER) .withTimeout(Duration.ofSeconds(30)) .withMaxRetries(5) .build()