forked from apache/incubator-pegasus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SKV-618] fix(ddl_client): sleep for a while before retry once meta s…
…erver is busy https://jira.sensorsdata.cn/browse/SKV-618 社区issue:apache#1449 社区pr:apache#1453 Under some circumstances, creating/dropping table might spend more time, which could even be greater than RPC timeout. Then, once DDL client launched another requests to meta server, it would receive `ERR_BUSY_CREATING` or `ERR_BUSY_DROPPING`. Between these two attempts there is no interval, thus these attempts are ineffective. Therefore, a retry mechanism is introduced to resolve this problem: - the max number of attempts is configurable; - the retry mechanism for failed sending request to meta server due to `ERR_NETWORK_FAILURE` or `ERR_TIMEOUT` is unchanged, and the max number of attempts is restrict by the configuration; - once response is `ERR_BUSY_CREATING` or `ERR_BUSY_DROPPING`, DDL client would also retry, and between two attempts there is an configurable interval.
- Loading branch information
王聃
committed
May 23, 2023
1 parent
7e99c01
commit ede7854
Showing
12 changed files
with
566 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ set(MY_PROJ_LIBS "") | |
set(MY_BINPLACES "") | ||
|
||
dsn_add_static_library() | ||
|
||
add_subdirectory(test) |
Oops, something went wrong.