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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user