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

Validation API should use low priority lock #4140

Merged
merged 4 commits into from
Apr 11, 2023
Merged

Validation API should use low priority lock #4140

merged 4 commits into from
Apr 11, 2023

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Apr 5, 2023

What changed?

  • Use low priority lock for VerifyFirstWorkflowTaskScheduled API
  • Use low priority lock for VerifyChildExecutionCompletionRecorded API
  • Rename caller type to lock priority since some internal API use "low priority lock"

Why?
too many concurrent child workflow start / completion verification call can cause replication starvation of parent workflow

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
N/A

@wxing1292 wxing1292 requested a review from a team as a code owner April 5, 2023 03:37
@wxing1292 wxing1292 changed the title VerifyChildExecutionCompletionRecorded API should use low priority lock Validation API should use low priority lock Apr 5, 2023
@@ -51,6 +51,7 @@ func Invoke(
nil,
api.BypassMutableStateConsistencyPredicate,
workflowKey,
workflow.CallerTypeAPI,
Copy link
Member

Choose a reason for hiding this comment

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

this can be task?

@wxing1292 wxing1292 enabled auto-merge (squash) April 11, 2023 17:36
@wxing1292 wxing1292 merged commit 0e18e19 into temporalio:master Apr 11, 2023
@wxing1292 wxing1292 deleted the lock branch April 11, 2023 17:59
wxing1292 added a commit that referenced this pull request Apr 13, 2023
* Use low priority lock for VerifyFirstWorkflowTaskScheduled API
* Use low priority lock for VerifyChildExecutionCompletionRecorded API
* Rename caller type to lock priority since some internal API use "low priority lock"
wxing1292 added a commit that referenced this pull request Apr 13, 2023
* Use low priority lock for VerifyFirstWorkflowTaskScheduled API
* Use low priority lock for VerifyChildExecutionCompletionRecorded API
* Rename caller type to lock priority since some internal API use "low priority lock"
wxing1292 added a commit that referenced this pull request Apr 13, 2023
* Use low priority lock for VerifyFirstWorkflowTaskScheduled API
* Use low priority lock for VerifyChildExecutionCompletionRecorded API
* Rename caller type to lock priority since some internal API use "low priority lock"
yycptt pushed a commit that referenced this pull request Apr 17, 2023
* Use low priority lock for VerifyFirstWorkflowTaskScheduled API
* Use low priority lock for VerifyChildExecutionCompletionRecorded API
* Rename caller type to lock priority since some internal API use "low priority lock"
samanbarghi pushed a commit to samanbarghi/temporal that referenced this pull request May 2, 2023
* Use low priority lock for VerifyFirstWorkflowTaskScheduled API
* Use low priority lock for VerifyChildExecutionCompletionRecorded API
* Rename caller type to lock priority since some internal API use "low priority lock"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants