YvCeung commented on issue #7564: URL: https://github.com/apache/incubator-seata/issues/7564#issuecomment-3135500418
Other configurations also need to be taken into consideration ```java // consul if (dataId.equals(getConsulConfigKey())) { // The new config change listener Properties seataConfigNew; try { seataConfigNew = ConfigProcessor.processConfig(value, getConsulDataType()); } catch (IOException e) { LOGGER.error("load config properties error", e); continue; } for (Map.Entry<String, Set<ConfigurationChangeListener>> entry : CONFIG_LISTENERS_MAP.entrySet()) { String key = entry.getKey(); String valueOld = seataConfig.getProperty(key, ""); String valueNew = seataConfigNew.getProperty(key, ""); if (!valueOld.equals(valueNew)) { for (ConfigurationChangeListener changeListener : entry.getValue()) { event.setDataId(key).setNewValue(valueNew); ConfigurationChangeListener listener = ((ConsulListener) changeListener).getTargetListener(); listener.onProcessEvent(event); } } } seataConfig = seataConfigNew; ``` ```java // etcd Properties seataConfigNew; try { seataConfigNew = ConfigProcessor.processConfig( new String(bytes, StandardCharsets.UTF_8), getEtcdDataType()); } catch (IOException e) { LOGGER.error("load config properties error", e); return; } ``` -- 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: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org