Skip to content

Commit 83d7a27

Browse files
committed
JVMCBC-1654 (followup) Replace recursive calls with waitForBucketConfig
Fix regression in 907ca15: Should use `getAllSpan` instead of `parentSpan` in `getAllReplicasAsync`. Change-Id: If0b6b939d6fb6cd4d2a06e19acee34ab948c9882 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/230383 Reviewed-by: David Nault <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Michael Reiche <[email protected]>
1 parent 6bd4c2d commit 83d7a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-io/src/main/java/com/couchbase/client/core/service/kv/ReplicaHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static <R> CompletableFuture<List<CompletableFuture<R>>> getAllReplicasAs
191191
) {
192192
RequestSpan getAllSpan = core.context().coreResources().requestTracer().requestSpan(TracingIdentifiers.SPAN_LOOKUP_IN_ALL_REPLICAS, parentSpan);
193193

194-
return getAllReplicasRequests(core, collectionIdentifier, documentId, clientContext, retryStrategy, timeout, parentSpan, readPreference).toFuture()
194+
return getAllReplicasRequests(core, collectionIdentifier, documentId, clientContext, retryStrategy, timeout, getAllSpan, readPreference).toFuture()
195195
.thenApply(list ->
196196
list.stream().map(request ->
197197
get(core, request)

0 commit comments

Comments
 (0)