Skip to content

Commit

Permalink
[DR] Set default recovery token-factory (linkedin#2774)
Browse files Browse the repository at this point in the history
[DR] Set default recovery token-factory
  • Loading branch information
snalli authored May 11, 2024
1 parent e20e7bf commit 7d1b055
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ public class ReplicationConfig {
/**
* The factory class the replication uses to create cloud token
*/
public static final String DEFAULT_RECOVERY_TOKEN_FACTORY = "com.github.ambry.cloud.RecoveryTokenFactory";
@Config(REPLICATION_CLOUD_TOKEN_FACTORY)
@Default("com.github.ambry.cloud.azure.CosmosUpdateTimeFindTokenFactory")
@Default(DEFAULT_RECOVERY_TOKEN_FACTORY)
public final String replicationCloudTokenFactory;

/**
Expand Down Expand Up @@ -325,7 +326,7 @@ public ReplicationConfig(VerifiableProperties verifiableProperties) {
replicationStoreTokenFactory =
verifiableProperties.getString("replication.token.factory", "com.github.ambry.store.StoreFindTokenFactory");
replicationCloudTokenFactory = verifiableProperties.getString(REPLICATION_CLOUD_TOKEN_FACTORY,
"com.github.ambry.cloud.azure.CosmosChangeFeedFindTokenFactory");
DEFAULT_RECOVERY_TOKEN_FACTORY);
replicationNumOfIntraDCReplicaThreads =
verifiableProperties.getInt("replication.no.of.intra.dc.replica.threads", 1);
replicationNumOfInterDCReplicaThreads =
Expand Down

0 comments on commit 7d1b055

Please sign in to comment.