Skip to content

Commit dea17d4

Browse files
chore(cleanup): remove legacy bootstrap step (datahub-project#11494)
1 parent b473cf8 commit dea17d4

File tree

9 files changed

+8
-925
lines changed

9 files changed

+8
-925
lines changed

metadata-jobs/mae-consumer/src/main/java/com/linkedin/metadata/kafka/boot/MCLBootstrapManagerFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import javax.annotation.Nonnull;
1212
import org.springframework.beans.factory.annotation.Autowired;
1313
import org.springframework.beans.factory.annotation.Qualifier;
14-
import org.springframework.beans.factory.annotation.Value;
1514
import org.springframework.context.annotation.Bean;
1615
import org.springframework.context.annotation.Conditional;
1716
import org.springframework.context.annotation.Configuration;
@@ -27,9 +26,6 @@ public class MCLBootstrapManagerFactory {
2726

2827
@Autowired private ConfigurationProvider _configurationProvider;
2928

30-
@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
31-
private Boolean _upgradeDefaultBrowsePathsEnabled;
32-
3329
@Bean(name = "mclBootstrapManager")
3430
@Scope("singleton")
3531
@Nonnull

metadata-jobs/mce-consumer/src/main/java/com/linkedin/metadata/kafka/boot/MCPBootstrapManagerFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import javax.annotation.Nonnull;
1212
import org.springframework.beans.factory.annotation.Autowired;
1313
import org.springframework.beans.factory.annotation.Qualifier;
14-
import org.springframework.beans.factory.annotation.Value;
1514
import org.springframework.context.annotation.Bean;
1615
import org.springframework.context.annotation.Conditional;
1716
import org.springframework.context.annotation.Configuration;
@@ -27,9 +26,6 @@ public class MCPBootstrapManagerFactory {
2726

2827
@Autowired private ConfigurationProvider _configurationProvider;
2928

30-
@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
31-
private Boolean _upgradeDefaultBrowsePathsEnabled;
32-
3329
@Bean(name = "mcpBootstrapManager")
3430
@Scope("singleton")
3531
@Nonnull

metadata-service/configuration/src/main/resources/application.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,6 @@ incidents:
343343
consumerGroupSuffix: ${INCIDENTS_HOOK_CONSUMER_GROUP_SUFFIX:}
344344

345345
bootstrap:
346-
upgradeDefaultBrowsePaths:
347-
enabled: ${UPGRADE_DEFAULT_BROWSE_PATHS_ENABLED:false} # enable to run the upgrade to migrate legacy default browse paths to new ones
348-
backfillBrowsePathsV2:
349-
enabled: ${BACKFILL_BROWSE_PATHS_V2:false} # Enables running the backfill of browsePathsV2 upgrade step. There are concerns about the load of this step so hiding it behind a flag. Deprecating in favor of running through SystemUpdate
350-
reprocessDefaultBrowsePathsV2:
351-
enabled: ${REPROCESS_DEFAULT_BROWSE_PATHS_V2:false} # reprocess V2 browse paths which were set to the default: {"path":[{"id":"Default"}]}
352346
policies:
353347
file: ${BOOTSTRAP_POLICIES_FILE:classpath:boot/policies.json}
354348
# eg for local file

metadata-service/factories/src/main/java/com/linkedin/metadata/boot/factories/BootstrapManagerFactory.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.linkedin.metadata.boot.BootstrapManager;
1010
import com.linkedin.metadata.boot.BootstrapStep;
1111
import com.linkedin.metadata.boot.dependencies.BootstrapDependency;
12-
import com.linkedin.metadata.boot.steps.BackfillBrowsePathsV2Step;
1312
import com.linkedin.metadata.boot.steps.IndexDataPlatformsStep;
1413
import com.linkedin.metadata.boot.steps.IngestDataPlatformInstancesStep;
1514
import com.linkedin.metadata.boot.steps.IngestDataPlatformsStep;
@@ -25,7 +24,6 @@
2524
import com.linkedin.metadata.boot.steps.RestoreColumnLineageIndices;
2625
import com.linkedin.metadata.boot.steps.RestoreDbtSiblingsIndices;
2726
import com.linkedin.metadata.boot.steps.RestoreGlossaryIndices;
28-
import com.linkedin.metadata.boot.steps.UpgradeDefaultBrowsePathsStep;
2927
import com.linkedin.metadata.boot.steps.WaitForSystemUpdateStep;
3028
import com.linkedin.metadata.entity.AspectMigrationsDao;
3129
import com.linkedin.metadata.entity.EntityService;
@@ -89,12 +87,6 @@ public class BootstrapManagerFactory {
8987

9088
@Autowired private ConfigurationProvider _configurationProvider;
9189

92-
@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
93-
private Boolean _upgradeDefaultBrowsePathsEnabled;
94-
95-
@Value("${bootstrap.backfillBrowsePathsV2.enabled}")
96-
private Boolean _backfillBrowsePathsV2Enabled;
97-
9890
@Value("${bootstrap.policies.file}")
9991
private Resource _policiesResource;
10092

@@ -154,14 +146,6 @@ protected BootstrapManager createInstance(
154146
ingestDataTypesStep,
155147
ingestEntityTypesStep));
156148

157-
if (_upgradeDefaultBrowsePathsEnabled) {
158-
finalSteps.add(new UpgradeDefaultBrowsePathsStep(_entityService));
159-
}
160-
161-
if (_backfillBrowsePathsV2Enabled) {
162-
finalSteps.add(new BackfillBrowsePathsV2Step(_entityService, _searchService));
163-
}
164-
165149
return new BootstrapManager(finalSteps);
166150
}
167151
}

metadata-service/factories/src/main/java/com/linkedin/metadata/boot/steps/BackfillBrowsePathsV2Step.java

Lines changed: 0 additions & 156 deletions
This file was deleted.

metadata-service/factories/src/main/java/com/linkedin/metadata/boot/steps/UpgradeDefaultBrowsePathsStep.java

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)