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

Update replication path to use lazy retry on service busy error #3376

Merged
merged 3 commits into from
Jul 9, 2020

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jul 9, 2020

What changed?
Treat service busy error in the replication path with special retry policy. The retry policy is to slow down the replication

Why?
When replication receives service busy error, the error is from the persistence layer. If the persistence is too busy. We should slow down the replication to give the quota to active tasks.

How did you test it?
local

Potential risks
The replication could build up backlog when it slows down

@yux0 yux0 requested review from vancexu and yycptt July 9, 2020 00:42
client/history/client.go Outdated Show resolved Hide resolved
client/history/client.go Show resolved Hide resolved
common/util.go Outdated Show resolved Hide resolved
service/history/historyEngine.go Show resolved Hide resolved
service/history/historyEngine.go Show resolved Hide resolved
service/history/replication/task_fetcher.go Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jul 9, 2020

Coverage Status

Coverage decreased (-0.03%) to 67.182% when pulling 4dcfd3a on replication_retry into 2911586 on master.

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