Joscorbe commented on code in PR #295:
URL: https://github.com/apache/jackrabbit-oak/pull/295#discussion_r959877290
##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/ReadPreferenceIT.java:
##########
@@ -116,10 +116,11 @@ public void testReadWriteMode() {
mongoDS.setReadWriteMode(rwMode(ReadPreference.primary()));
assertEquals(ReadPreference.primary(),
mongoDS.getConfiguredReadPreference(NODES));
-
mongoDS.setReadWriteMode("readPreference=secondary&w=2&safe=true&j=true");
+ // Command failed with error 2 (BadValue): 'cannot use 'w' > 1 when a
host is not replicated'
+
mongoDS.setReadWriteMode("readPreference=secondary&w=1&safe=true&j=true");
assertEquals(ReadPreference.secondary(),
mongoDS.getDBCollection(NODES).getReadPreference());
- assertEquals(2,
mongoDS.getDBCollection(NODES).getWriteConcern().getW());
+ assertEquals(1,
mongoDS.getDBCollection(NODES).getWriteConcern().getW());
Review Comment:
Same as before
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]