2 parents 7741370 + 9d726ca commit 9f10f58Copy full SHA for 9f10f58
1 file changed
agollo.go
@@ -380,6 +380,13 @@ func (a *agollo) longPoll() {
380
if status == http.StatusNotModified {
381
continue
382
}
383
+
384
+ if len(oldValue.Different(newValue)) == 0 {
385
+ // case 可能是apollo集群搭建问题
386
+ // GetConfigsFromNonCache 返回了了一模一样的数据,但是http.status code == 200
387
+ // 导致NotificationID更新了,但是真实的配置没有更新,而后续也不会获取到新配置,除非有新的变更触发
388
+ continue
389
+ }
390
391
// 发送到监听channel
392
a.sendWatchCh(notification.NamespaceName, oldValue, newValue)
0 commit comments