dimas-b commented on code in PR #3755:
URL: https://github.com/apache/polaris/pull/3755#discussion_r2800635860


##########
polaris-core/src/main/java/org/apache/polaris/core/config/PolarisConfiguration.java:
##########
@@ -50,7 +52,7 @@ public abstract class PolarisConfiguration<T> {
    * configs.
    */
   private static void registerConfiguration(PolarisConfiguration<?> 
configuration) {
-    for (PolarisConfiguration<?> existingConfiguration : allConfigurations) {
+    for (PolarisConfiguration<?> existingConfiguration : ALL_CONFIGURATIONS) {
       if (existingConfiguration.key.equals(configuration.key)) {
         throw new IllegalArgumentException(
             String.format("Config '%s' is already in use", configuration.key));

Review Comment:
   The change looks good to me... yet, the use case described in the PR makes 
me wonder if perhaps this check may be circumvented in the concurrent load 
situation 😅 not a big deal, IMHO.



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