Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Master cluster to Primary cluster #4185

Merged
merged 10 commits into from
May 10, 2021
Merged

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented May 7, 2021

What changed?
Update Master cluster to Primary cluster

Why?
Update Master cluster to Primary cluster

How did you test it?
server starts

Potential risks
N/A

Release notes

Documentation Changes
N/A

@yux0 yux0 requested review from longquanzheng, yycptt and a team May 7, 2021 20:54
@coveralls
Copy link

coveralls commented May 7, 2021

Pull Request Test Coverage Report for Build 0f041b5e-2a6a-4562-90cb-cd0988b66822

  • 19 of 32 (59.38%) changed or added relevant lines in 6 files are covered.
  • 57 unchanged lines in 10 files lost coverage.
  • Overall coverage increased (+0.008%) to 59.814%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tools/cli/domainUtils.go 0 1 0.0%
common/cluster/metadata.go 5 9 55.56%
cmd/server/cadence/server.go 0 8 0.0%
Files with Coverage Reduction New Missed Lines %
common/cluster/metadata.go 1 60.71%
service/history/task/task.go 1 82.52%
common/task/weightedRoundRobinTaskScheduler.go 2 89.12%
service/history/execution/mutable_state_builder.go 2 69.85%
common/cache/lru.go 3 90.73%
common/persistence/cassandra/cassandraPersistence.go 3 51.2%
common/task/fifoTaskScheduler.go 3 82.47%
service/history/task/transfer_standby_task_executor.go 4 90.42%
service/history/queue/processor_base.go 7 61.82%
common/persistence/cassandra/cassandraPersistenceUtil.go 31 90.87%
Totals Coverage Status
Change from base Build 82669659-4e33-47ab-a4c9-4d237fc1bdb3: 0.008%
Covered Lines: 88101
Relevant Lines: 147292

💛 - Coveralls

CHANGELOG.md Outdated
@@ -11,7 +11,8 @@ You can find a list of previous releases on the [github releases](https://github
- Added GRPC support. Cadence server will accept requests on both TChannel and GRPC. With dynamic config flag `system.enableGRPCOutbound` it will also switch to GRPC communication internally between server components.

### Fixed
- Fixed a bug where an error message is always displayed in Cadence UI `persistence max qps reached for list operations` on the workflow list screen (#3958)
- Fixed a bug where an error message is always displayed in Cadence UI `persistence max qps reached for list operations` on the workflow list screen (#3958)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a wrong fix. I just talked to Justin about it. He will make a fix in web using retry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I delete it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so

Copy link
Contributor Author

@yux0 yux0 May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I deleted it

// all clusters can do domain failover
PrimaryClusterName string `yaml:"primaryClusterName"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a convention that we introduced breaking changes in configuration -- can we have a version being compatible with warning logs? Likely 0.22.0. And then in 0.23.0 we will remove MasterClusterName completely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This versio is backward compatible. Added a logging message.

CHANGELOG.md Outdated
@@ -11,7 +11,7 @@ You can find a list of previous releases on the [github releases](https://github
- Added GRPC support. Cadence server will accept requests on both TChannel and GRPC. With dynamic config flag `system.enableGRPCOutbound` it will also switch to GRPC communication internally between server components.

### Fixed
- Fixed a bug where an error message is always displayed in Cadence UI `persistence max qps reached for list operations` on the workflow list screen (#3958)
- Replace masterClusterName config with primaryClusterName(#4185)
Copy link
Collaborator

@longquanzheng longquanzheng May 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that for release notes for next release? Maybe putting it more clear that users should update their config

@yux0 yux0 merged commit b2adb71 into uber:master May 10, 2021
@yux0 yux0 deleted the remove_master_cluster branch May 10, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants