I'm attempting to reshard my cadence cluster using the provided guidance by creating a new cluster with a number of higher number of shards and then enabling XDC . What's the latest version of Cadence that isn't effected by the Allow CrossDC to replicate between clusters with different numbOfShards bug?
Is there a way to determine if an existing domain is registered as a global domain?
The bug is still open and we are working on it. I will come back to update this answer when we fix it.
The bug is fixed and will be out in next release.
To tell if a domain is a global domain, you can use CLI to describe the domain cluster lists( it may also be shown on the WebUI)
cadence --do samples-domain-global d desc
Name: samples-domain-global
UUID: 5ac45494-581f-4a86-890f-007bcab7feea
Description:
OwnerEmail:
DomainData: map[]
Status: REGISTERED
RetentionInDays: 3
EmitMetrics: true
ActiveClusterName: primary
Clusters: primary, secondary
However, if your global domain is only registered in one cluster, we recently improved it in this issue to include a new field IsGlobal(XDC)Domain
. The change is merged in master but not release yet. You can use docker run to use it:
update docker image via docker pull ubercadence/cli:master
Run the command
docker run --rm ubercadence/cli:master --address host.docker.internal:7933 --do samples-domain d desc
Name: samples-domain
UUID: ccd3fd09-b74b-41a6-8e2e-eff120e99772
Description:
OwnerEmail:
DomainData: map[]
Status: REGISTERED
RetentionInDays: 0
EmitMetrics: true
IsGlobal(XDC)Domain: false
ActiveClusterName: active
Clusters: N/A, Not a global domain
...