temporalio / temporalio/temporal

Surprising clusterMetadata override

Open
#3,104 3 comments 0 reactions 1 assignee View on GitHub

@yux0 is already working on this.

Since Jul 14, 2022.

bug teams/cgs
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Expected Behavior

If DB is not initialized, static config of cluster metadata should be

  • either respected & persisted into DB
  • or deprecated completely

Actual Behavior

clusterMetadata:
  enableGlobalNamespace: true
  failoverVersionIncrement: 10
  masterClusterName: "cluster-a"
  currentClusterName: "cluster-a"
  clusterInformation:
    cluster-a:
      enabled: true
      initialFailoverVersion: 3
      rpcName: "frontend"
      rpcAddress: "localhost:7233"
    cluster-b:
      enabled: true
      initialFailoverVersion: 2
      rpcName: "frontend"
      rpcAddress: "localhost:8233"

Using above static config & clean DB & after 1s ish, the cluster-b section will be deleted

Steps to Reproduce the Problem

See above

Specifications

  • Version: 1.16.x+
  • Platform: Mac & Intel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.