Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions openmetadata-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,6 @@
<artifactId>jwks-rsa</artifactId>
<version>${jwks-rsa.version}</version>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
</dependency>
<dependency>
<groupId>io.socket</groupId>
<artifactId>socket.io-server</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,12 @@
import org.openmetadata.service.apps.bundles.searchIndex.distributed.DistributedJobParticipant;
import org.openmetadata.service.apps.bundles.searchIndex.distributed.ServerIdentityResolver;
import org.openmetadata.service.apps.scheduler.AppScheduler;
import org.openmetadata.service.audit.AuditLogEventPublisher;
import org.openmetadata.service.audit.AuditLogRepository;
import org.openmetadata.service.clients.llm.LlmConfigHolder;
import org.openmetadata.service.config.CacheConfiguration;
import org.openmetadata.service.config.OMWebBundle;
import org.openmetadata.service.config.OMWebConfiguration;
import org.openmetadata.service.events.EventFilter;
import org.openmetadata.service.events.EventPubSub;
import org.openmetadata.service.events.lifecycle.EntityLifecycleEventDispatcher;
import org.openmetadata.service.events.scheduled.EventSubscriptionScheduler;
import org.openmetadata.service.events.scheduled.ServicesStatusJobHandler;
Expand Down Expand Up @@ -126,10 +124,7 @@
import org.openmetadata.service.logging.SwitchableEventLayoutFactory;
import org.openmetadata.service.migration.MigrationValidationClient;
import org.openmetadata.service.migration.api.MigrationWorkflow;
import org.openmetadata.service.monitoring.EventMonitor;
import org.openmetadata.service.monitoring.EventMonitorConfiguration;
import org.openmetadata.service.monitoring.EventMonitorFactory;
import org.openmetadata.service.monitoring.EventMonitorPublisher;
import org.openmetadata.service.monitoring.JettyMetricsIntegration;
import org.openmetadata.service.monitoring.JettyQoSIntegration;
import org.openmetadata.service.monitoring.UserMetricsServlet;
Expand Down Expand Up @@ -373,9 +368,6 @@ public void run(OpenMetadataApplicationConfig catalogConfig, Environment environ
// Health Check
registerHealthCheck(environment);

// start event hub before registering publishers
EventPubSub.start();

ApplicationHandler.initialize(catalogConfig);
IndexResource.initialize(catalogConfig);
registerResources(catalogConfig, environment, jdbi);
Expand Down Expand Up @@ -412,9 +404,6 @@ public void run(OpenMetadataApplicationConfig catalogConfig, Environment environ
registerDistributedJobParticipant(environment, jdbi);
registerDistributedRdfJobParticipant(environment, jdbi);

// Register Event publishers
registerEventPublisher(catalogConfig);

// start authorizer after event publishers
// authorizer creates admin/bot users, ES publisher should start before to index users created
// by authorizer
Expand Down Expand Up @@ -1073,22 +1062,6 @@ public void stop() {
});
}

private void registerEventPublisher(OpenMetadataApplicationConfig openMetadataApplicationConfig) {

EventPubSub.addEventHandler(new AuditLogEventPublisher(auditLogRepository));

if (openMetadataApplicationConfig.getEventMonitorConfiguration() != null) {
final EventMonitor eventMonitor =
EventMonitorFactory.createEventMonitor(
openMetadataApplicationConfig.getEventMonitorConfiguration(),
openMetadataApplicationConfig.getClusterName());
EventMonitorPublisher eventMonitorPublisher =
new EventMonitorPublisher(
openMetadataApplicationConfig.getEventMonitorConfiguration(), eventMonitor);
EventPubSub.addEventHandler(eventMonitorPublisher);
}
}

private void registerResources(
OpenMetadataApplicationConfig config, Environment environment, Jdbi jdbi) {
CollectionRegistry.initialize();
Expand Down Expand Up @@ -1239,7 +1212,6 @@ public void start() {
public void stop() throws InterruptedException, SchedulerException {
LOG.info("Cache with Id Stats {}", EntityRepository.CACHE_WITH_ID.stats());
LOG.info("Cache with name Stats {}", EntityRepository.CACHE_WITH_NAME.stats());
EventPubSub.shutdown();
EventSubscriptionScheduler.shutDown();
AsyncService.getInstance().shutdown();
EntityLifecycleEventDispatcher.getInstance().shutdown();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading