forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'datahub-project:master' into master
- Loading branch information
Showing
188 changed files
with
4,123 additions
and
2,254 deletions.
There are no files selected for viewing
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
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
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
30 changes: 30 additions & 0 deletions
30
datahub-upgrade/src/main/java/com/linkedin/datahub/upgrade/config/BootstrapMCPConfig.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.linkedin.datahub.upgrade.config; | ||
|
||
import com.linkedin.datahub.upgrade.system.bootstrapmcps.BootstrapMCP; | ||
import com.linkedin.metadata.entity.EntityService; | ||
import io.datahubproject.metadata.context.OperationContext; | ||
import java.io.IOException; | ||
import javax.annotation.Nonnull; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class BootstrapMCPConfig { | ||
|
||
@Nonnull | ||
@Value("${systemUpdate.bootstrap.mcpConfig}") | ||
private String bootstrapMCPConfig; | ||
|
||
@Bean(name = "bootstrapMCPNonBlocking") | ||
public BootstrapMCP bootstrapMCPNonBlocking( | ||
final OperationContext opContext, EntityService<?> entityService) throws IOException { | ||
return new BootstrapMCP(opContext, bootstrapMCPConfig, entityService, false); | ||
} | ||
|
||
@Bean(name = "bootstrapMCPBlocking") | ||
public BootstrapMCP bootstrapMCPBlocking( | ||
final OperationContext opContext, EntityService<?> entityService) throws IOException { | ||
return new BootstrapMCP(opContext, bootstrapMCPConfig, entityService, true); | ||
} | ||
} |
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
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
8 changes: 4 additions & 4 deletions
8
datahub-upgrade/src/main/java/com/linkedin/datahub/upgrade/system/SystemUpdateBlocking.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,16 +1,16 @@ | ||
package com.linkedin.datahub.upgrade.system; | ||
|
||
import com.linkedin.datahub.upgrade.system.bootstrapmcps.BootstrapMCP; | ||
import com.linkedin.datahub.upgrade.system.elasticsearch.steps.DataHubStartupStep; | ||
import java.util.List; | ||
import lombok.NonNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class SystemUpdateBlocking extends SystemUpdate { | ||
|
||
public SystemUpdateBlocking( | ||
@NonNull List<BlockingSystemUpgrade> blockingSystemUpgrades, | ||
@NonNull List<NonBlockingSystemUpgrade> nonBlockingSystemUpgrades, | ||
@Nullable DataHubStartupStep dataHubStartupStep) { | ||
super(blockingSystemUpgrades, nonBlockingSystemUpgrades, dataHubStartupStep); | ||
@NonNull DataHubStartupStep dataHubStartupStep, | ||
@NonNull final BootstrapMCP bootstrapMCPBlocking) { | ||
super(blockingSystemUpgrades, List.of(), dataHubStartupStep, bootstrapMCPBlocking, null); | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
...ub-upgrade/src/main/java/com/linkedin/datahub/upgrade/system/SystemUpdateNonBlocking.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,16 +1,14 @@ | ||
package com.linkedin.datahub.upgrade.system; | ||
|
||
import com.linkedin.datahub.upgrade.system.elasticsearch.steps.DataHubStartupStep; | ||
import com.linkedin.datahub.upgrade.system.bootstrapmcps.BootstrapMCP; | ||
import java.util.List; | ||
import lombok.NonNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class SystemUpdateNonBlocking extends SystemUpdate { | ||
|
||
public SystemUpdateNonBlocking( | ||
@NonNull List<BlockingSystemUpgrade> blockingSystemUpgrades, | ||
@NonNull List<NonBlockingSystemUpgrade> nonBlockingSystemUpgrades, | ||
@Nullable DataHubStartupStep dataHubStartupStep) { | ||
super(blockingSystemUpgrades, nonBlockingSystemUpgrades, dataHubStartupStep); | ||
final BootstrapMCP bootstrapMCPNonBlocking) { | ||
super(List.of(), nonBlockingSystemUpgrades, null, null, bootstrapMCPNonBlocking); | ||
} | ||
} |
Oops, something went wrong.