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

Use detached context for shard context operations #3194

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Aug 5, 2022

What changed?

  • Use detached context for shard context operations

Why?
#3178

How did you test it?

Potential risks

Is hotfix candidate?

  • Maybe

@yycptt yycptt requested a review from a team as a code owner August 5, 2022 23:13
@yycptt yycptt merged commit 875a976 into temporalio:master Aug 6, 2022
@yycptt yycptt deleted the detached-shard-op-ctx branch August 6, 2022 00:46
@@ -2023,21 +2023,28 @@ func (s *ContextImpl) GetArchivalMetadata() archiver.ArchivalMetadata {
return s.archivalMetadata
}

func (s *ContextImpl) ensureMinContextTimeout(
func (s *ContextImpl) newDetachedContext(
Copy link
Member

Choose a reason for hiding this comment

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

comment about "in what situation you should used a detached Context"?

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

None yet

3 participants