Skip to content

Commit fd9832a

Browse files
committed
Gardening: Document that clusterUUID and clusterName were added in Couchbase Server 7.6.4
Change-Id: If7a8efb9f0d22d2d09f4944422f0059f74658c9a Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/232559 Reviewed-by: Michael Reiche <[email protected]> Tested-by: David Nault <[email protected]>
1 parent 983dc9a commit fd9832a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

core-io/src/main/java/com/couchbase/client/core/topology/ClusterIdentifier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class ClusterIdentifier {
3838
}
3939

4040
public static @Nullable ClusterIdentifier parse(ObjectNode config) {
41+
// Cluster UUID and name were added in Couchbase Server 7.6.4.
4142
JsonNode clusterUuid = config.path("clusterUUID");
4243
JsonNode clusterName = config.path("clusterName");
4344
if (clusterUuid.isMissingNode() || clusterName.isMissingNode()) {

core-io/src/main/java/com/couchbase/client/core/topology/ClusterTopology.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.couchbase.client.core.topology;
1818

19+
import com.couchbase.client.core.annotation.SinceCouchbase;
1920
import com.couchbase.client.core.annotation.Stability;
2021
import com.couchbase.client.core.env.NetworkResolution;
2122
import org.jspecify.annotations.Nullable;
@@ -120,6 +121,7 @@ public ClusterTopologyWithBucket requireBucket() {
120121
throw new NoSuchElementException("Bucket topology is absent.");
121122
}
122123

124+
@SinceCouchbase("7.6.4")
123125
@Nullable public ClusterIdentifier id() {
124126
return clusterIdent;
125127
}

0 commit comments

Comments
 (0)