We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 538b01e commit 431c1a2Copy full SHA for 431c1a2
marklogic-client-api/src/main/java/com/marklogic/client/datamovement/HostAvailabilityListener.java
@@ -133,7 +133,7 @@ public HostAvailabilityListener withSuspendTimeForHostUnavailable(Duration
133
*/
134
public HostAvailabilityListener withMinHosts(int numHosts) {
135
if (moveMgr.getConnectionPolicy() == DatabaseClient.ConnectionPolicy.PRIMARY_HOST) {
136
- if (numHosts != 0) {
+ if (numHosts != 1) {
137
throw new IllegalArgumentException("numHosts must be 1 when using only the primary host for the connection");
138
}
139
} else {
0 commit comments