Repository navigation
Fix stuck while processing pending batch for async distributed INSERT - #72939
Conversation
|
This is an automated comment for commit e64c790 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
|
Can someone please take a look (conflicts has been fixed) |
In ClickHouse#57480 I've fixed exactly the same problem (stuck due to non-existing file), but in ClickHouse#66375 I broke it since before checking valid() the code now tries to read files and got "No such file or directory" exception. Rewrite the code to reduce the complexity by: - removing extra helpers - remove some object flags (recovered) and use function arguments instead It also fixes one typo for accounting total_bytes in case of recovery. Signed-off-by: Azat Khuzhin <[email protected]>
81b1a85 to
e64c790
Compare
|
|
OK, @yariks5s thanks for taking a look, let me merge with master now |
|
CI:
It is a bug fix, but it is hard to provide a test
|
|
Hi @azat @yariks5s — while reviewing this PR I found the following:
Happy to discuss — close anything that's wrong or already addressed. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix stuck while processing pending batch for async distributed INSERT (due to i.e.
No such file or directory)In #57480 I've fixed exactly the same problem (stuck due to non-existing file), but in #66375 I broke it since before checking valid() the code now tries to read files and got "No such file or directory" exception.
Rewrite the code to reduce the complexity by:
It also fixes one typo for accounting total_bytes in case of recovery.