File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
core-io/src/main/java/com/couchbase/client/core/diagnostics Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 30
30
import com .couchbase .client .core .msg .kv .KvPingResponse ;
31
31
import com .couchbase .client .core .retry .RetryStrategy ;
32
32
import com .couchbase .client .core .service .ServiceType ;
33
+ import com .couchbase .client .core .topology .BucketCapability ;
33
34
import com .couchbase .client .core .topology .ClusterTopology ;
34
35
import com .couchbase .client .core .topology .ClusterTopologyWithBucket ;
35
36
import com .couchbase .client .core .topology .HostAndServicePorts ;
@@ -155,7 +156,11 @@ static Set<RequestTarget> extractPingTargets(
155
156
156
157
final List <ClusterTopology > topologiesToScan = new ArrayList <>();
157
158
if (bucket != null ) {
158
- topologiesToScan .add (clusterConfig .bucketTopology (bucket ));
159
+ ClusterTopologyWithBucket topology = clusterConfig .bucketTopology (bucket );
160
+ if (topology != null && !topology .bucket ().hasCapability (BucketCapability .COUCHAPI )) {
161
+ serviceTypeFilter .remove (VIEWS );
162
+ }
163
+ topologiesToScan .add (topology );
159
164
} else {
160
165
serviceTypeFilter .removeAll (servicesThatRequireBucket ); // narrow to the ones that can be pinged without a bucket
161
166
topologiesToScan .add (clusterConfig .globalTopology ());
You can’t perform that action at this time.
0 commit comments