-
Notifications
You must be signed in to change notification settings - Fork 163
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
Config Server Data dictionary not cleared before Load #185
Conversation
[#184] The Config Server's Data dicitonary needs to be cleared before loading it
Codecov Report
@@ Coverage Diff @@
## 2.x #185 +/- ##
==========================================
- Coverage 61.74% 61.71% -0.03%
==========================================
Files 784 784
Lines 22557 22558 +1
Branches 4389 4389
==========================================
- Hits 13928 13922 -6
- Misses 7438 7452 +14
+ Partials 1191 1184 -7
Continue to review full report at Codecov.
|
@@ -264,6 +264,8 @@ internal ConfigEnvironment DoLoad(bool updateDictionary = true) | |||
"Located environment: {name}, {profiles}, {label}, {version}, {state}", env.Name, env.Profiles, env.Label, env.Version, env.State); | |||
if (updateDictionary) | |||
{ | |||
Data.Clear(); |
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.
@dtillman I won't add this one here, this could impact requests which are currently reading the dictinoary value. I would add another local temp dictonary and add the new values init and replace with existing one .
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.
Ahh .. great point .. thanks!
Dave
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.
Looks good to me! I hope this is not limited to 2.x.
No worries, @vivekkjain. We always merge the 2.x branch forward to master (3.x branch). Thanks for opening the issue and the review. |
[#184] The Config Server's Data dicitonary needs to be cleared before loading it