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

pkg/receive: avoid false positive conflict err #1616

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

squat
Copy link
Member

@squat squat commented Oct 9, 2019

This commit ensures that the replicate func does not falsely identify
a replication error as a conflict. If the number of conflict errors
during replication is less than the minimum replication threshold, then
replication cannot be said to have failed due to a conflict and the
request should be retried.

Fixes: #1615

xref: #1563
Signed-off-by: Lucas Servén Marín [email protected]

cc @brancz @dtrejod

This commit ensures that the `replicate` func does not falsely identify
a replication error as a conflict. If the number of conflict errors
during replication is less than the minimum replication threshold, then
replication cannot be said to have failed due to a conflict and the
request should be retried.

Fixes: thanos-io#1615

xref: thanos-io#1563
Signed-off-by: Lucas Servén Marín <[email protected]>
@squat squat force-pushed the avoidfalsepositive branch from b0fc0b3 to e493646 Compare October 9, 2019 11:16
@brancz brancz merged commit aaaa95f into thanos-io:master Oct 9, 2019
@squat squat deleted the avoidfalsepositive branch October 9, 2019 15:16
GiedriusS pushed a commit that referenced this pull request Oct 28, 2019
This commit ensures that the `replicate` func does not falsely identify
a replication error as a conflict. If the number of conflict errors
during replication is less than the minimum replication threshold, then
replication cannot be said to have failed due to a conflict and the
request should be retried.

Fixes: #1615

xref: #1563
Signed-off-by: Lucas Servén Marín <[email protected]>
Signed-off-by: Giedrius Statkevičius <[email protected]>
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.

Avoid False Positives 409s in Thanos Receive Replication
2 participants