Skip to content

Commit

Permalink
Changes for moving state build to FCM
Browse files Browse the repository at this point in the history
  • Loading branch information
Jai Balani committed Nov 28, 2024
1 parent e9b1d5a commit 80d1bce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,6 @@ public class ClusterMapConfig {
@Default("false")
public final boolean clusterMapIgnoreDownwardStateTransition;

public static final String ENABLE_FILE_COPY_FOR_BOOTSTRAP = "clustermap.enable.file.copy.for.bootstrap";

public ClusterMapConfig(VerifiableProperties verifiableProperties) {
clusterMapFixedTimeoutDatanodeErrorThreshold =
verifiableProperties.getIntInRange("clustermap.fixedtimeout.datanode.error.threshold", 3, 1, 100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@
*/
public class HelixParticipant implements ClusterParticipant, PartitionStateChangeListener {
public static final String DISK_KEY = "DISK";

public static final boolean ENABLE_FILE_COPY = false;
final HelixParticipantMetrics participantMetrics;
private final HelixClusterManager clusterManager;
private final String clusterName;
Expand Down Expand Up @@ -876,15 +874,10 @@ public void onPartitionBecomeBootstrapFromOffline(String partitionName) {
storageManagerListener.onPartitionBecomeBootstrapFromOffline(partitionName);
}

if (ENABLE_FILE_COPY) {
// TODO: Filecopy Invocation
// TODO: Statebuild Invocation: storageManagerListener.buildStateForFileCopy. Functional signature
// 1. TODO: Start the store
// 2. TODO: Enable compaction for the new started store

// StateBuilding
storageManagerListener.buildStateForFileCopy(partitionName);
}
// TODO: Filecopy Invocation
// TODO: Statebuild Invocation: storageManagerListener.buildStateForFileCopy. Functional signature
// 1. TODO: Start the store
// 2. TODO: Enable compaction for the new started store

// 2. take actions in replication manager (add new replica if necessary)
PartitionStateChangeListener replicationManagerListener =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class PartitionStateChangeListenerImpl implements PartitionStateChangeListener {

@Override
public void onPartitionBecomeBootstrapFromOffline(String partitionName) {

// StateBuilding at the end of FCM's Offline->Bootstrap transition
storeManager.buildStateForFileCopy(partitionName);
}

@Override
Expand Down

0 comments on commit 80d1bce

Please sign in to comment.