-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG FIX] Config listener doesn't execute when querying result is config doesn't exist #712
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #712 +/- ##
==========================================
- Coverage 32.69% 32.67% -0.02%
==========================================
Files 45 45
Lines 3294 3296 +2
==========================================
Hits 1077 1077
- Misses 2136 2138 +2
Partials 81 81 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this pr fixed it : #626
这个pr有2部分:
这个pr先只修复listener执行逻辑,先合入一版本。 |
@@ -493,14 +493,17 @@ func (client *ConfigClient) refreshContentAndCheck(cacheData cacheData, notify b | |||
cacheData.group, cacheData.tenant) | |||
return | |||
} | |||
if configQueryResponse != nil && configQueryResponse.Response != nil && !configQueryResponse.IsSuccess() { | |||
if configQueryResponse != nil && configQueryResponse.Response != nil && | |||
!configQueryResponse.IsSuccess() && configQueryResponse.GetErrorCode() != 300 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!=300 的状态码判断可以先去掉,只修复listen相关逻辑
fix up #711