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
The data of the join table engine is not the newest after the server restarted #51027
Comments
+1, also interested in this |
We have the same problem. A colleague believes this unsorted retrieval of file names is the source of the issue: ClickHouse/src/Storages/StorageSet.cpp Line 195 in d072100
|
+1 |
2 similar comments
+1 |
+1 |
I can confirm what has been posted so far. The issue is easy to reproduce, and occurs also if "join_any_take_last_row" is not used. The problem seems to be indeed with the order of how the backup files are loaded after a restart of the server. The way I see it, this issue is a big problem for users that rely on JOIN engine to ignore the duplicate keys with the ANY strictness (as is currently stated in the documentation). Find below step-by-step executed statements and ClickHouse logs.
|
Thanks everybody for reporting and for reproducers! @richard-formulate it seems your assumption is correct, great catch! |
Hi, can you give us an estimate when this fix will be released? We were hoping it would be included in the latest version, but I noticed it's not part of the v24.3.2.23-lts. It's a very important fix for us. |
@acoj1993 it was fixed after v24.3.2.23 was released. It will be in the next release 24.3.3. |
Clickhouse 23.3.3.52 (official build).
hi, I have created a join table and inserted or updated several items for the table.
Then I restarted the server. But I got the old data from the table.
This is the table data dir:
This is the server restart logs:
The latest data is stored in 14.bin, does it seems not load in sequence during restore?
Really hope to reply, thanks a lot.
Does it reproduce on recent release?
The list of releases
Enable crash reporting
Error message and/or stacktrace
Additional context
The text was updated successfully, but these errors were encountered: