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

Move ringpop setup to common/membership #4638

Conversation

mantas-sidlauskas
Copy link
Contributor

What changed?
Ringpop creation is moved to common/membership

Why?
This is part of refactoring needed to introduce selectable membership providers

How did you test it?
Unit tests/local test

Potential risks

Release notes

Documentation Changes

@coveralls
Copy link

coveralls commented Nov 15, 2021

Pull Request Test Coverage Report for Build 2e5164bd-82e7-4c0c-929a-12c65db0e105

  • 76 of 129 (58.91%) changed or added relevant lines in 5 files are covered.
  • 14 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.02%) to 56.892%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/server/cadence/server.go 0 3 0.0%
common/membership/ringpop_config.go 17 20 85.0%
common/membership/rpMonitor.go 0 11 0.0%
common/membership/monitor.go 55 91 60.44%
Files with Coverage Reduction New Missed Lines %
service/history/execution/mutable_state_task_refresher.go 1 73.82%
service/history/queue/timer_queue_processor_base.go 1 78.6%
common/task/fifoTaskScheduler.go 2 87.63%
common/task/weightedRoundRobinTaskScheduler.go 2 89.64%
service/history/queue/timer_queue_processor.go 2 58.8%
common/membership/rpMonitor.go 6 0%
Totals Coverage Status
Change from base Build 4c92817b-dc2e-45bb-9577-207f98da0720: 0.02%
Covered Lines: 82355
Relevant Lines: 144756

💛 - Coveralls

@mantas-sidlauskas mantas-sidlauskas requested a review from a team November 15, 2021 07:58
for _, service := range provider.UnresolvedHosts {
serviceParts := strings.Split(service, ".")
for _, host := range provider.UnresolvedHosts {
serviceParts := strings.Split(host, ".")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe this should be hostParts as well. I find whole section quite confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, will update

@mantas-sidlauskas mantas-sidlauskas merged commit 7e14102 into cadence-workflow:master Nov 15, 2021
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