[
https://issues.apache.org/jira/browse/SCB-846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581779#comment-16581779
]
ASF GitHub Bot commented on SCB-846:
------------------------------------
heyile commented on a change in pull request #872: [SCB-846] ConfigCenterClient
log much in the pull mode
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/872#discussion_r210448460
##########
File path:
dynamic-config/config-cc/src/main/java/org/apache/servicecomb/config/client/ParseConfigUtils.java
##########
@@ -74,14 +74,23 @@ public void initWithUpdateHandler(UpdateHandler
updateHandler) {
public void refreshConfigItems(Map<String, Map<String, Object>> remoteItems)
{
try {
configLock.lock();
+ String oldRevision = currentVersionInfo;
+ boolean newVersion = false;
currentVersionInfo =
remoteItems.getOrDefault("revision", new
HashMap<>()).getOrDefault("version", "default").toString();
//make sure the currentVersionInfo != ""
currentVersionInfo = currentVersionInfo.equals("") ? "default" :
currentVersionInfo;
- remoteItems.remove("revision");//the key revision is not the config
setting
+ if (remoteItems.containsKey("revision")) {
Review comment:
impossible.
in the new version, when oldRevision is same with newRevision, it will
returen 304
in the old version, it will not contain key revision
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [SCB-846] ConfigCenterClient log too much in the pull mode
> ----------------------------------------------------------
>
> Key: SCB-846
> URL: https://issues.apache.org/jira/browse/SCB-846
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Reporter: 何一乐
> Assignee: 何一乐
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)