obelix74 commented on code in PR #3523:
URL: https://github.com/apache/polaris/pull/3523#discussion_r2801179140
##########
persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/RelationalJdbcProductionReadinessChecks.java:
##########
@@ -55,4 +56,50 @@ public ProductionReadinessCheck checkRelationalJdbc(
}
return ProductionReadinessCheck.OK;
}
+
+ /**
+ * Checks if metrics persistence is properly configured. When metrics
persistence is enabled, this
+ * check verifies that the metrics tables have been bootstrapped in the
database.
+ *
+ * <p>This check only applies when using RelationalJdbc persistence and
metrics persistence is
+ * enabled.
+ */
+ @Produces
+ public ProductionReadinessCheck checkMetricsPersistenceBootstrapped(
+ MetaStoreManagerFactory metaStoreManagerFactory,
+ Instance<DataSource> dataSource,
+ RelationalJdbcConfiguration relationalJdbcConfiguration,
+ @ConfigProperty(name = "polaris.persistence.metrics.enabled",
defaultValue = "false")
+ boolean metricsPersistenceEnabled) {
+ // This check should only be applicable when persistence uses
RelationalJdbc.
+ if (!(metaStoreManagerFactory instanceof JdbcMetaStoreManagerFactory)) {
+ return ProductionReadinessCheck.OK;
Review Comment:
@dimas-b Moved it to https://github.com/apache/polaris/pull/3385.
https://github.com/apache/polaris/pull/3385/changes/16abf1b187acd1bd8b2722e4c7eb3f92d7421544#diff-2d3092986da2282edf801ee580cdd68d707e31f78de1a654af7953d2bcd4bd8aR92.
Thanks again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]