funky-eyes commented on issue #7564: URL: https://github.com/apache/incubator-seata/issues/7564#issuecomment-3138364121
> Other configurations also need to be taken into consideration > > // 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; > // 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; > } Right -- 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