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

Remove Membership Factory #4627

Merged
merged 2 commits into from
Nov 11, 2021

Conversation

mantas-sidlauskas
Copy link
Contributor

What changed?
membership.Monitor is used instead of MembershipMonitorFactory

Why?
To simplify upcoming changes for pluggable membership options.

How did you test it?
Unit tests/local test

Potential risks

Release notes

Documentation Changes

@coveralls
Copy link

coveralls commented Nov 10, 2021

Pull Request Test Coverage Report for Build 8e4f3a25-a206-4713-b426-606df86c3d67

  • 17 of 44 (38.64%) changed or added relevant lines in 7 files are covered.
  • 69 unchanged lines in 8 files lost coverage.
  • Overall coverage decreased (-0.03%) to 56.917%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/membership/rpServiceResolver.go 0 1 0.0%
cmd/server/cadence/server.go 0 2 0.0%
common/membership/rpMonitor.go 8 13 61.54%
common/config/ringpop.go 0 19 0.0%
Files with Coverage Reduction New Missed Lines %
service/history/execution/mutable_state_builder.go 2 69.66%
service/history/queue/transfer_queue_processor.go 2 57.24%
common/persistence/nosql/nosqlplugin/cassandra/workflow.go 3 55.49%
service/history/task/transfer_standby_task_executor.go 4 89.15%
common/persistence/nosql/nosqlExecutionStore.go 9 60.35%
common/persistence/nosql/nosqlplugin/cassandra/tasks.go 14 72.8%
common/persistence/nosql/nosqlTaskStore.go 16 58.37%
common/persistence/nosql/nosqlplugin/cassandra/workflowParsingUtils.go 19 86.84%
Totals Coverage Status
Change from base Build 41f430f9-2fd6-4e27-8297-0d5ae9092eaa: -0.03%
Covered Lines: 82380
Relevant Lines: 144738

💛 - Coveralls

"github.com/uber/cadence/common"
"github.com/uber/cadence/common/types"
)

// ErrUnknownService is thrown for a service that is not tracked by this instance
var ErrUnknownService = errors.New("Service not tracked by Monitor")

// ErrInsufficientHosts is thrown when there are not enough hosts to serve the request
var ErrInsufficientHosts = &types.InternalServiceError{Message: "Not enough hosts to serve the request"}
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason for removing up/below errors but not this one? All three of them does not seem to be used outside of this package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will address this in next PR

Copy link
Contributor

@vytautas-karpavicius vytautas-karpavicius left a comment

Choose a reason for hiding this comment

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

Overall looks good.

@mantas-sidlauskas mantas-sidlauskas enabled auto-merge (squash) November 11, 2021 09:02
@mantas-sidlauskas mantas-sidlauskas merged commit c145ab8 into cadence-workflow:master Nov 11, 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