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

Bugfix replication protocol #979

Merged
merged 4 commits into from
Jul 19, 2018
Merged

Bugfix replication protocol #979

merged 4 commits into from
Jul 19, 2018

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Jul 18, 2018

  • Bugfix: when workflow is idle during the failover, no event will be generated, thus not replication info will be added; if a double failover is done for this workflow, the source cluster is not changed at all, so no replication info is needed.

  • Add more metrics on worker

Related to #944

Wenquan Xing added 2 commits July 18, 2018 16:01
…enerated, thus not replication info will be added. Under this condition, the a double failover will increase the failover version, with no replication info, and the request is still valid
@@ -199,7 +199,10 @@ func (p *replicationTaskProcessor) processWithRetry(msg kafka.Message, workerID
forceBuffer := false
remainingRetryCount := p.config.ReplicationTaskMaxRetry

attempt := 0
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have an attempt variable as part of for loop. Can we just have a one instead of 2?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably you also want to include attempt on warn logs for every 100 failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

all done

@wxing1292 wxing1292 merged commit 0a3ff55 into master Jul 19, 2018
@wxing1292 wxing1292 deleted the bugfix-replication-protocol branch July 19, 2018 01:02
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