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 stream sender update ack level on empty task #7061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jan 8, 2025

What changed?

Fix stream sender update ack level on empty task

Why?

If there is no replication task between two cells, we should still update the ack level.

How did you test it?

Potential risks

Documentation

Is hotfix candidate?

@yux0 yux0 requested review from hehaifengcn and hai719 January 8, 2025 18:18
@yux0 yux0 requested a review from a team as a code owner January 8, 2025 18:18
@@ -510,10 +506,15 @@ Loop:
return err
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

should we reset skipCount after we send the watermark?

@@ -489,10 +489,6 @@ Loop:
return fmt.Errorf("ReplicationServiceError StreamSender unable to get next replication task: %w", err)
}

if !s.shouldProcessTask(item) {
Copy link
Contributor

Choose a reason for hiding this comment

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

line 562 below https://github.com/temporalio/temporal/pull/7061/files#diff-3a5383e58f4357884dc90cd45cdc6b2650d1bf8e59c6dbb2d78ca561af96da57R562 , the code will send WorkflowReplicationMessages with endExclusiveWatermark. That is not enough to update Ack level?

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