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

Persistence context part 5: persistence store interfaces #2659

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Mar 28, 2022

What changed?

  • Add context parameter to persistence store interfaces.
  • NOTE: there's no behavior change in this PR. SQL and Cassandra store implementation still ignores the context passed it. Those will be changed in a follow up PR.

Why?

  • Enforce persistence timeout, instead of always timeout after 10s
  • Required for host level task worker pool

How did you test it?

  • Existing test

Potential risks

  • Very low, context is currently ignored by persistence store implementation

Is hotfix candidate?

  • No.

@yycptt yycptt requested a review from a team as a code owner March 28, 2022 18:55
@@ -44,6 +45,7 @@ type sqlClusterMetadataManager struct {
var _ p.ClusterMetadataStore = (*sqlClusterMetadataManager)(nil)

func (s *sqlClusterMetadataManager) ListClusterMetadata(
_ context.Context,
request *p.InternalListClusterMetadataRequest,
) (*p.InternalListClusterMetadataResponse, error) {
ctx, cancel := newExecutionContext()
Copy link
Member Author

Choose a reason for hiding this comment

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

This PR does not include any behavior change.
newExecutionContext will be removed in a follow up PR for actually using the passed in context.

@yycptt yycptt merged commit d6f85df into temporalio:master Mar 28, 2022
@yycptt yycptt deleted the persistence-ctx-store branch March 28, 2022 22:33
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.

2 participants