Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.nio.file.Path;
import org.apache.polaris.core.config.ProductionReadinessCheck;
import org.apache.polaris.core.config.ProductionReadinessCheck.Error;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -36,7 +37,14 @@ public class EclipseLinkProductionReadinessChecks {
LoggerFactory.getLogger(EclipseLinkProductionReadinessChecks.class);

@Produces
public ProductionReadinessCheck checkJdbcUrl(EclipseLinkConfiguration eclipseLinkConfiguration) {
public ProductionReadinessCheck checkJdbcUrl(
Comment thread
singhpk234 marked this conversation as resolved.
Outdated
Comment thread
singhpk234 marked this conversation as resolved.
Outdated
EclipseLinkConfiguration eclipseLinkConfiguration,
@ConfigProperty(name = "polaris.persistence.type") String persistenceType) {
// This check should only be applicable when persistence uses EclipseLink.
if (!("eclipse-link".equalsIgnoreCase(persistenceType))) {
Comment thread
singhpk234 marked this conversation as resolved.
Outdated
Comment thread
singhpk234 marked this conversation as resolved.
Outdated
return ProductionReadinessCheck.OK;
}

try {
var confFile = eclipseLinkConfiguration.configurationFile().map(Path::toString).orElse(null);
var persistenceUnitName =
Expand Down