DATACOUCH-209 - Change default Consistency to READ_YOUR_OWN_WRITES

Formerly UPDATE_AFTER, but the inconsistent view this would give eg. while writing tests or exploring Spring Data Couchbase was confusing to users.
This commit is contained in:
Simon Baslé
2016-02-22 15:42:40 +01:00
parent 0007c448d6
commit 2f251e0ba9
4 changed files with 5 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ public class CouchbaseTemplateParserIntegrationTests {
reader.loadBeanDefinitions(new ClassPathResource("configurations/couchbase-consistency.xml"));
CouchbaseTemplate template = factory.getBean("template", CouchbaseTemplate.class);
assertEquals(Consistency.READ_YOUR_OWN_WRITES, template.getDefaultConsistency());
assertEquals(Consistency.EVENTUALLY_CONSISTENT, template.getDefaultConsistency());
assertNotEquals(Consistency.DEFAULT_CONSISTENCY, template.getDefaultConsistency());
}