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.
fix(duplication): dup would get stuck in
DS_PREPARE
indefinitely on…
…ce some error occurred during creating follower table (apache#2144) Fix apache#2146. As is described in issue, once there are some errors occurred during the follower table is being created, the follower cluster might replied with `ERR_APP_EXIST` to the source cluster. Then, the source cluster would continue to send the same request to create table on the follower cluster again. As such, the dup would get stuck in the current status, namely `DS_PREPARE`, and could not forward to the next status. The core idea to solve this problem is that we should make the request that create table on follower cluster idempotent. The follower cluster should process the repeated requests correctly. To implement this, an environment variable marking creating status is added and sent together with the request to the follower cluster. The follower cluster would choose to commit it to meta data on both remote storage and local memory, or just ignore it, or reply to source cluster with some error code.
- Loading branch information
Showing
20 changed files
with
938 additions
and
361 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
Oops, something went wrong.