Skip to content

Commit 1251795

Browse files
authored
fix(upgrade): removes sleep from bootstrap process (#8016)
1 parent 4ca7a9b commit 1251795

File tree

1 file changed

+0
-8
lines changed
  • metadata-service/factories/src/main/java/com/linkedin/metadata/boot

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
@Slf4j
2222
public abstract class UpgradeStep implements BootstrapStep {
23-
private static final Integer SLEEP_SECONDS = 120;
2423

2524
protected final EntityService _entityService;
2625
private final String _version;
@@ -37,19 +36,12 @@ public UpgradeStep(EntityService entityService, String version, String upgradeId
3736

3837
@Override
3938
public void execute() throws Exception {
40-
String upgradeStepName = name();
41-
42-
log.info(String.format("Attempting to run %s Upgrade Step..", upgradeStepName));
43-
log.info(String.format("Waiting %s seconds..", SLEEP_SECONDS));
4439

4540
if (hasUpgradeRan()) {
4641
log.info(String.format("%s has run before for version %s. Skipping..", _upgradeId, _version));
4742
return;
4843
}
4944

50-
// Sleep to ensure deployment process finishes.
51-
Thread.sleep(SLEEP_SECONDS * 1000);
52-
5345
try {
5446
ingestUpgradeRequestAspect();
5547
upgrade();

0 commit comments

Comments
 (0)