flyrain commented on PR #3385:
URL: https://github.com/apache/polaris/pull/3385#issuecomment-3953906091

   Sync with @obelix74 offline, we should be good to go once these two things 
are fixed
   1. The same schema version for metrics table and other tables. We spent a 
lot of time to make sure schema evolution work. Keeping the same schema version 
will ensure this continue to work without extra wiring in code and mental 
burden for the system admin. A system admin wont' be confused by which two 
versions should work together.
   2. Named data source, as this following sample code shows, we could 
introduce a new data source like `metricsDatasourceOperations`, so that all 
MetricsPersistence related method can use the separate data source. In that 
case, no extra pluming is needed. Classes like `JdbcMetricsPersistenceProducer` 
are not needed. The bootstrap behavior should also be part of 
`JdbcMetaStoreManagerFactory`, we could still route metrics related bootstrap 
logic from the method `bootstrapRealms`. 
   ```
   public class JdbcBasePersistenceImpl implements BasePersistence, 
IntegrationPersistence, MetricsPersistence {
   
     private static final Logger LOGGER = 
LoggerFactory.getLogger(JdbcBasePersistenceImpl.class);
   
     private final PolarisDiagnostics diagnostics;
     private final DatasourceOperations datasourceOperations;
     private final DatasourceOperations metricsDatasourceOperations;
   ```


-- 
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]

Reply via email to