Skip to content

Commit

Permalink
Launch Liquibase Mongo operations only when Arc is ready
Browse files Browse the repository at this point in the history
This avoids a race condition with the AppCDS generation process.

Fixes: quarkusio#33843
  • Loading branch information
geoand committed Jun 7, 2023
1 parent f3bbc25 commit f62d576
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import org.jboss.jandex.DotName;
import org.jboss.logging.Logger;

import io.quarkus.arc.deployment.BeanContainerBuildItem;
import io.quarkus.arc.deployment.SyntheticBeanBuildItem;
import io.quarkus.arc.deployment.SyntheticBeansRuntimeInitBuildItem;
import io.quarkus.deployment.Feature;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
Expand Down Expand Up @@ -245,7 +245,7 @@ void createBeans(LiquibaseMongodbRecorder recorder,

@BuildStep
@Record(ExecutionTime.RUNTIME_INIT)
@Consume(SyntheticBeansRuntimeInitBuildItem.class)
@Consume(BeanContainerBuildItem.class)
ServiceStartBuildItem startLiquibase(LiquibaseMongodbRecorder recorder,
BuildProducer<InitTaskCompletedBuildItem> initializationCompleteBuildItem) {
// will actually run the actions at runtime
Expand Down

0 comments on commit f62d576

Please sign in to comment.