Skip to content

Commit 8d08414

Browse files
vbabaninrozza
andauthored
Update driver-core/src/main/com/mongodb/internal/connection/OperationContext.java
Co-authored-by: Ross Lawley <[email protected]>
1 parent b01f97a commit 8d08414

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

driver-core/src/main/com/mongodb/internal/connection/OperationContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ public void onAttemptFailure(final Throwable failure) {
270270
return;
271271
}
272272

273-
// As per spec: sharded clusters deprioritize on any error, other topologies only on overload
273+
// As per spec: sharded clusters deprioritize on any error,
274+
// other topologies deprioritize on overload only when retargeting is enabled.
274275
boolean isSystemOverloadedError = failure instanceof MongoException
275276
&& ((MongoException) failure).hasErrorLabel(SYSTEM_OVERLOADED_ERROR_LABEL);
276277

0 commit comments

Comments
 (0)