-
Notifications
You must be signed in to change notification settings - Fork 96
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
insert operation succeeds without actually writing any data to the table #82
Comments
I'm sorry for not getting back to you sooner. Can you provide this code instead of images so I can check it? |
sorry I dont have this particular code any more i figured it was an issue with the types but no errors reported i think this still is a bug tho |
Hello, I think I am having same problem. I am using batch update and there are no errors but Messages are not empty, I am sure of that as I am logging what I am writing to batch: |
I found out that entries are inserted into database if I call |
I think i figured this out and i can produce a minimal reproducable example |
that would be great. Thank you! |
As seen here both inserts succeed however second insert simply was not inserted despite being successful i thought this is a clickhouse server specific issue however when i run the same commands on clickhouse cli itself (inserting deleting and inserting back) it works without a problem |
to run the example i wrote simply provide the db address in full URI form |
Hello! Is this still an ongoing issue? I haven't used the crate yet, but this feels like a relatively important problem to address... |
well i im using this in production so far as long as two consequtive ids are not the same it works fine but if your case cannot handle "but sometimes" sort of issues i dont think this is suitable for you @karaolidis |
I just run a couple of tests, the minimal example provided fails with:
After changing it to:
... it seems to be working fine:
|
We have been using this crate actively for years on multiple big production clusters with different CH versions and have never seen lost data because of this crate, so I think it's "production-ready" despite being 0.X version. |
That's good to hear, thanks for the help! I couldn't reproduce the issue anyway so I'll give the crate a go 🙏 |
See the documentation how to properly use it. You need to set some threshold (by time or by row count and soon by size too). In case of using by-time threshold, you should call |
@ta3pks, what do you mean by "consequtive ids are not the same"? |
I run the example 100 times both in debug and release modes and it's fine. What's the version of CH do you use? The (possibly) failed result can be explained if
CH CLI uses tcp+native which has a longer handshake (yep, HTTP can be handled faster for short queries). So, again: what's the version of CH server? |
@loyd have you had a look at my minimal example ? |
In this example
insert_twitter_user_counts
method returnsOk
however theres no row inserted when i check on the dbHere is my test case everything returns success until the fetch_one it simply fails to fetch an unexisting record
When I use
.query
however the same data works without problemsThe text was updated successfully, but these errors were encountered: