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

Fix long poll cancellation #6538

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Dec 2, 2024

What changed?

  • Fix a nil pointer dereference issue in frontend's PollForActivityTask handler
  • Update matching client's polling methods to modify the requests so that caller can cancel the long poll requests

Why?
Fix bugs

How did you test it?
eye ball check

Potential risks

Release notes

Documentation Changes

@@ -152,6 +152,8 @@ func (c *clientImpl) PollForActivityTask(
partition,
resp.LoadBalancerHints,
)
// caller needs to know the actual partition for cancelling long poll, so modify the request to pass this information
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't like this pattern. I think we should return the partition explicitly to the caller, but for a quick fix, I'll go with this way.

@Shaddoll Shaddoll merged commit 5f579dd into cadence-workflow:master Dec 3, 2024
17 checks passed
@Shaddoll Shaddoll deleted the bug branch December 3, 2024 01:14
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