Skip to content

Commit

Permalink
run es bulk in async (#18649)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 authored Nov 18, 2024
1 parent f0b76c4 commit ae1e7e6
Show file tree
Hide file tree
Showing 7 changed files with 460 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
public final class Entity {
private static volatile boolean initializedRepositories = false;
@Getter @Setter private static CollectionDAO collectionDAO;
@Getter @Setter private static Jdbi jdbi;
public static final String SEPARATOR = "."; // Fully qualified name separator

// Canonical entity name to corresponding EntityRepository map
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void run(OpenMetadataApplicationConfig catalogConfig, Environment environ

jdbi = createAndSetupJDBI(environment, catalogConfig.getDataSourceFactory());
Entity.setCollectionDAO(getDao(jdbi));
Entity.setJdbi(jdbi);

initializeSearchRepository(catalogConfig.getElasticSearchConfiguration());
// Initialize the MigrationValidationClient, used in the Settings Repository
Expand Down
Loading

0 comments on commit ae1e7e6

Please sign in to comment.