diff --git a/src/main/java/org/opensearch/security/configuration/ConfigurationRepository.java b/src/main/java/org/opensearch/security/configuration/ConfigurationRepository.java index 2396963df8..0945a10a0a 100644 --- a/src/main/java/org/opensearch/security/configuration/ConfigurationRepository.java +++ b/src/main/java/org/opensearch/security/configuration/ConfigurationRepository.java @@ -379,6 +379,7 @@ public SecurityDynamicConfiguration getConfiguration(CType configurationType) private final Lock LOCK = new ReentrantLock(); public void reloadConfiguration(Collection configTypes) throws ConfigUpdateAlreadyInProgressException { + System.out.println("Reloading configuration for configTypes"); try { if (LOCK.tryLock(60, TimeUnit.SECONDS)) { try { @@ -396,6 +397,7 @@ public void reloadConfiguration(Collection configTypes) throws ConfigUpda } private void reloadConfiguration0(Collection configTypes, boolean acceptInvalid) { + System.out.println("Reloading Configuration 0 for config Types"); final Map> loaded = getConfigurationsFromIndex(configTypes, false, acceptInvalid); configCache.putAll(loaded); notifyAboutChanges(loaded); diff --git a/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java b/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java index 7b666c565f..90079836ed 100644 --- a/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java +++ b/src/main/java/org/opensearch/security/securityconf/DynamicConfigFactory.java @@ -351,6 +351,7 @@ private static ConfigV7 getConfigV7(SecurityDynamicConfiguration sdc) { @Override public final boolean isInitialized() { + System.out.println("Checking if initialized in dynamic configuration factory"); return initialized.get(); }