apollo-java
apollo-java copied to clipboard
Apollo Java Clients
## What's the purpose of this PR Speed up when startup meet timeout, i.e when meet meta service and config service crash. ## Which issue(s) this PR fixes: Fixes #60...
**Is your feature request related to a problem? Please describe.** When first time load a namespace from remote, we will get * 404: If namespace doesn't exists in remote, apollo-client...
客户端读到老数据
```java ConfigService.getAppConfig().addChangeListener(new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent configChangeEvent) { String newValue = configChangeEvent.getChange("someKey").getNewValue(); System.out.println("event-: "); System.out.println(newValue); String application = ConfigService.getConfigFile("application", ConfigFileFormat.Properties).getContent(); System.out.println("configservice-: "); System.out.println(application); } }); ConfigService.getConfigFile("application", ConfigFileFormat.Properties).addChangeListener(new ConfigFileChangeListener()...
**描述bug** 1、有两个比较老的SpringMvc项目,部署在同一个tomcat是tomcat 7.0.93 , 每个项目classpath:META-INF/app.properties配置的app.id不同。 2、在启动时,只有一个应用能启动成功,另一个应用有日志提示:App ID is set to xxx by app.id property from System Property, 说明应用2是从 System.getProperty("app_id")拿到了前一个应用调System.setProperty("app_id", app)设置的值 3、写了两个简单的webapp,放在同一个tomcat下,经过验证发现,System.getProperty() 在多个tomcat webapp下是共享的,即一个app调 System.setProperty("app_id", app)后,另一个项目能拿到相同的值,导致另外一个app没有正确拿到app.id参数 ```java 问题在这里,app1启动后,会调System.setProperty设置自身的app_id;app2读到了app1写入的app_id com/ctrip/framework/apollo/spring/boot/ApolloApplicationContextInitializer.java private void...
在使用中使用tcpdump抓包发现,客户端在调长连接接口时结束之后,即使stream被close了,tcp也不会触发FIN,而是下次调notification接口时还是在原来的tcp上进行传输。 但是掉queryConfig接口则会触发FIN,但是Sync和Fin间隔120秒 
如题,testcase中演示了2种方法: 1、以future / Semaphore方式,非侵入(ApolloMockServerApiTest) ``` Config otherConfig = ConfigService.getConfig(anotherNamespace); final SettableFuture future = SettableFuture.create(); otherConfig.addChangeListener(new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { future.set(changeEvent); } }); embeddedApollo.deleteProperty(anotherNamespace, "key4"); ConfigChangeEvent changeEvent...
## What's the purpose of this PR add multiple appId pull into config see https://github.com/apolloconfig/apollo-java/issues/66 ## Which issue(s) this PR fixes: Fixes # Follow this checklist to help us incorporate...
## What's the purpose of this PR discussions [OSPP2024](https://github.com/apolloconfig/apollo/discussions/5171) test cases [Test](https://github.com/Rawven/apollo-ospp-test/tree/apollo) ## Which issue(s) this PR fixes: [Issue](https://github.com/apolloconfig/apollo/issues/5113) ## Brief changelog XXXXX Follow this checklist to help us incorporate...
1. 背景 现在java apollo client 不支持多appid拉取配置数据. 在一个应用中确实存在需要拉取不同应用appid下配置数据。来减少配置的重复配置。 比如在一个整合层应用,需要用到多个appid下的多种业务配置,开关进行复用。 2. 实现后的特征 (1)@JsonApolloValue,@ApolloConfigChangeListener 增加appid+name的属性,@Value保持原有使用. 如果不同appid/不同namespace 出现相同key,以加载config顺序最优先的值为准 (3)bootstrap 暂不支持 多appid的拉取 (4) @EnableApolloConfig 增加一个属性 mutipleConfig 可以放多个 @MutipleConfig ,属性有appId,多个namespace,以及对应的secret. 使用者可以在注解@MutipleConfig上填写 SpringEl表达式,读取配置文件中的secret 3. 实现方案 类需要增加appid (1)...
because the latest branch addresses some known issues