Skip to content

Commit 06f9d1f

Browse files
nikagraCopilot
andauthored
Update driver-core/src/main/java/com/datastax/driver/core/policies/TokenAwarePolicy.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 12ce4f6 commit 06f9d1f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

driver-core/src/main/java/com/datastax/driver/core/policies/TokenAwarePolicy.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ protected Host computeNext() {
253253
* in the order provided by cluster metadata (preserving primary replica order).
254254
* <li><strong>Remote replicas:</strong> Returns UP replicas marked as REMOTE by the child
255255
* policy.
256-
* <li><strong>Child policy fallback:</strong> If no suitable replicas are available (all DOWN
257-
* or IGNORED), falls back to the child policy's query plan, filtering out already-returned
258-
* replicas to avoid duplicates.
256+
* <li><strong>Child policy fallback:</strong> If no suitable replicas are available (for
257+
* example, all are DOWN or IGNORED and thus none are returned), falls back to the child
258+
* policy's query plan for the remaining hosts. The child policy's plan is used as-is and
259+
* may include hosts that were already considered by this iterator.
259260
* </ol>
260261
*/
261262
private class LWTHostIterator extends AbstractIterator<Host> {

0 commit comments

Comments
 (0)