Skip to content

Commit

Permalink
Merge pull request ClickHouse#76352 from CaptTofu/patch-1
Browse files Browse the repository at this point in the history
Retry ON CLUSTER queries in case of TOO_MANY_SIMULTANEOUS_QUERIES
  • Loading branch information
azat authored and zvonand committed Feb 27, 2025
1 parent 5c090db commit 261dcbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Interpreters/DDLWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ namespace ErrorCodes
extern const int CANNOT_ALLOCATE_MEMORY;
extern const int MEMORY_LIMIT_EXCEEDED;
extern const int NOT_IMPLEMENTED;
extern const int TOO_MANY_SIMULTANEOUS_QUERIES;
}

constexpr const char * TASK_PROCESSED_OUT_REASON = "Task has been already processed";
Expand Down Expand Up @@ -523,6 +524,7 @@ bool DDLWorker::tryExecuteQuery(DDLTaskBase & task, const ZooKeeperPtr & zookeep
e.code() != ErrorCodes::TABLE_IS_READ_ONLY &&
e.code() != ErrorCodes::CANNOT_ASSIGN_ALTER &&
e.code() != ErrorCodes::CANNOT_ALLOCATE_MEMORY &&
e.code() != ErrorCodes::TOO_MANY_SIMULTANEOUS_QUERIES &&
e.code() != ErrorCodes::MEMORY_LIMIT_EXCEEDED;
return no_sense_to_retry;
}
Expand Down

0 comments on commit 261dcbb

Please sign in to comment.