-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdd7024
commit 1e6cefa
Showing
5 changed files
with
133 additions
and
45 deletions.
There are no files selected for viewing
24 changes: 14 additions & 10 deletions
24
...re/ReplicationProtocolTransitionType.java → ...re/ReplicationProtocolTransitionType.java
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 |
---|---|---|
@@ -1,73 +1,77 @@ | ||
package com.github.ambry.store; | ||
|
||
/** | ||
* The types of hydration protocol transitions that can happen. | ||
* The possible options are :- Blob based and File copy based hydration | ||
*/ | ||
public enum ReplicationProtocolTransitionType { | ||
/** | ||
* Pre restart protocol: NA | ||
* Bootstrap status: NA | ||
* Post restart protocol: Blob based | ||
*/ | ||
NEW_PARTITION_TO_BLOB_BASED_BOOTSTRAP, | ||
NEW_PARTITION_TO_BLOB_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: NA | ||
* Bootstrap status: NA | ||
* Post restart protocol: File based | ||
*/ | ||
NEW_PARTITION_TO_FILE_BASED_BOOTSTRAP, | ||
NEW_PARTITION_TO_FILE_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: Blob based | ||
* Bootstrap status: Complete | ||
* Post restart protocol: File based | ||
*/ | ||
BLOB_BASED_COMPLETE_TO_FILE_BASED_BOOTSTRAP, | ||
BLOB_BASED_HYDRATION_COMPLETE_TO_FILE_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: File based | ||
* Bootstrap status: Complete | ||
* Post restart protocol: Blob based | ||
*/ | ||
FILE_BASED_COMPLETE_TO_BLOB_BASED_BOOTSTRAP, | ||
FILE_BASED_HYDRATION_COMPLETE_TO_BLOB_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: Blob based | ||
* Bootstrap status: Complete | ||
* Post restart protocol: Blob based | ||
*/ | ||
BLOB_BASED_COMPLETE_TO_BLOB_BASED_BOOTSTRAP, | ||
BLOB_BASED_HYDRATION_COMPLETE_TO_BLOB_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: File based | ||
* Bootstrap status: Complete | ||
* Post restart protocol: File based | ||
*/ | ||
FILE_BASED_COMPLETE_TO_FILE_BASED_BOOTSTRAP, | ||
FILE_BASED_HYDRATION_COMPLETE_TO_FILE_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: Blob based | ||
* Bootstrap status: InComplete | ||
* Post restart protocol: Blob based | ||
*/ | ||
BLOB_BASED_INCOMPLETE_TO_BLOB_BASED_BOOTSTRAP, | ||
BLOB_BASED_HYDRATION_INCOMPLETE_TO_BLOB_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: File based | ||
* Bootstrap status: InComplete | ||
* Post restart protocol: File based | ||
*/ | ||
FILE_BASED_INCOMPLETE_TO_FILE_BASED_BOOTSTRAP, | ||
FILE_BASED_HYDRATION_INCOMPLETE_TO_FILE_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: Blob based | ||
* Bootstrap status: InComplete | ||
* Post restart protocol: File based | ||
*/ | ||
BLOB_BASED_INCOMPLETE_TO_FILE_BASED_BOOTSTRAP, | ||
BLOB_BASED_HYDRATION_INCOMPLETE_TO_FILE_BASED_HYDRATION, | ||
|
||
/** | ||
* Pre restart protocol: File based | ||
* Bootstrap status: InComplete | ||
* Post restart protocol: Blob based | ||
*/ | ||
FILE_BASED_INCOMPLETE_TO_BLOB_BASED_BOOTSTRAP | ||
FILE_BASED_HYDRATION_INCOMPLETE_TO_BLOB_BASED_HYDRATION | ||
} |
14 changes: 14 additions & 0 deletions
14
ambry-clustermap/src/test/java/com/github/ambry/clustermap/TestReplica.java
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.