ClickHouse/src
Azat Khuzhin caffc144b5 Fix possible "Part directory doesn't exist" during INSERT
In #33291 final part commit had been defered, and now it can take
significantly more time, that may lead to "Part directory doesn't exist"
error during INSERT:

    2022.02.21 18:18:06.979881 [ 11329 ] {insert} <Debug> executeQuery: (from 127.1:24572, user: default) INSERT INTO db.table (...) VALUES
    2022.02.21 20:58:03.933593 [ 11329 ] {insert} <Trace> db.table: Renaming temporary part tmp_insert_20220214_18044_18044_0 to 20220214_270654_270654_0.
    2022.02.21 21:16:50.961917 [ 11329 ] {insert} <Trace> db.table: Renaming temporary part tmp_insert_20220214_18197_18197_0 to 20220214_270689_270689_0.
    ...
    2022.02.22 21:16:57.632221 [ 64878 ] {} <Warning> db.table: Removing temporary directory /clickhouse/data/db/table/tmp_insert_20220214_18232_18232_0/
    ...
    2022.02.23 12:23:56.277480 [ 11329 ] {insert} <Trace> db.table: Renaming temporary part tmp_insert_20220214_18232_18232_0 to 20220214_273459_273459_0.
    2022.02.23 12:23:56.299218 [ 11329 ] {insert} <Error> executeQuery: Code: 107. DB::Exception: Part directory /clickhouse/data/db/table/tmp_insert_20220214_18232_18232_0/ doesn't exist. Most likely it is a logical error. (FILE_DOESNT_EXIST) (version 22.2.1.1) (from 127.1:24572) (in query: INSERT INTO db.table (...) VALUES), Stack trace (when copying this message, always include the lines below):

Follow-up for: #28760
Refs: #33291

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-03-08 07:44:11 +03:00
..
Access Merge pull request #34855 from vitlibar/ignore-obsolete-grants-in-attach-grants 2022-03-04 12:50:09 +01:00
AggregateFunctions Fix some code comments style 2022-02-28 08:15:37 +08:00
Backups clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
Bridge
Client Merge pull request #34605 from bigo-sg/add_metric_for_local 2022-03-07 11:40:11 +01:00
Columns Implement more functions for Map data type 2022-03-03 13:22:44 +00:00
Common Merge pull request #35020 from ClickHouse/preprocessed_config_in_yaml 2022-03-06 02:31:37 +03:00
Compression clang-tidy check performance-move-const-arg fix 2022-03-02 18:15:27 +00:00
Coordination Merge pull request #35004 from ClickHouse/more_keeper_sanity_checks 2022-03-07 19:53:59 +01:00
Core Remove useless define 2022-03-04 23:32:38 +01:00
Databases Merge pull request #34487 from zzsmdfj/issue/32977_MaterializedMySQL_add_table_list_settings 2022-03-03 12:44:51 +01:00
DataTypes Merge pull request #34982 from Cai-Yao/master 2022-03-03 09:22:57 +01:00
Dictionaries Fix typo of update_lag 2022-03-07 18:31:20 +08:00
Disks Merge branch 'master' into finally-enable-s3-async-writes-again 2022-03-07 12:55:52 +00:00
Formats Fix generating USE_* for system.build_options 2022-03-04 15:31:32 +03:00
Functions Merge pull request #33698 from hexiaoting/dev-map-funciton 2022-03-04 11:51:17 +01:00
Interpreters Merge pull request #35081 from azat/fix-shutdown-deadlock 2022-03-07 13:47:15 +01:00
IO Catch exception in ~WriteBufferFromS3 2022-03-03 12:54:24 +00:00
Parsers Try to fix trim function 2022-03-07 11:08:11 +00:00
Processors Merge pull request #34993 from ClickHouse/try-fix-delayed-source 2022-03-03 13:44:45 +01:00
QueryPipeline Revert "cancel processon in QueryPipeline dtor" 2022-03-03 12:56:49 +00:00
Server Merge pull request #35010 from bigo-sg/keeperstatopt 2022-03-07 12:34:28 +01:00
Storages Fix possible "Part directory doesn't exist" during INSERT 2022-03-08 07:44:11 +03:00
TableFunctions clang-tidy check performance-move-const-arg fix 2022-03-02 18:15:27 +00:00
CMakeLists.txt Merge pull request #34226 from vitlibar/add-submodule-minizip 2022-02-08 22:07:34 +07:00
configure_config.cmake Add submodule minizip-ng 2022-02-05 23:45:16 +07:00
NOTICE