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(inserter): reset quantities on error #30

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

00nktk
Copy link
Contributor

@00nktk 00nktk commented Dec 22, 2021

Fixes a bug where Inserter won't reset it's current quantities (self.committed) if the underlying insert fails. As a result, a successful Insert after retry will return an invalid number of inserted entries.

@loyd
Copy link
Collaborator

loyd commented Dec 28, 2021

Thanks. Actually, Inserter/Insert are not supposed to work after failures, however, it can work, I'll think about it more.

@loyd
Copy link
Collaborator

loyd commented Dec 28, 2021

anyway, PR is LGTM

@loyd loyd merged commit 6b1c5b4 into ClickHouse:master Dec 28, 2021
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