Surge
Surge

Reputation: 7

Re-sharding a Cadence cluster: What is the latest version of cadence allows XDC replications when numHistoryShards are different?

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?

Upvotes: 0

Views: 188

Answers (1)

Long Quanzheng
Long Quanzheng

Reputation: 2401

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:

  1. update docker image via docker pull ubercadence/cli:master

  2. 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
...

Upvotes: 0

Related Questions