Skip to content

Commit

Permalink
[ISSUE alibaba#3876][NA] failed to update serviceName: DEFAULT_GROUP@…
Browse files Browse the repository at this point in the history
…@prod-zipkin
  • Loading branch information
realJackSun committed Feb 4, 2021
1 parent b6ecce4 commit 234c26f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ public String getData(PushService.PushClient client) {
client.getClusters(), client.getSocketAddr().getAddress().getHostAddress(), 0,
StringUtils.EMPTY, false, StringUtils.EMPTY, StringUtils.EMPTY, false);
} catch (Exception e) {
String serviceNameField = "name";
String lastRefTimeField = "lastRefTime";
if (result.get(serviceNameField) == null) {
String serviceName = client.getServiceName();
if (serviceName == null) {
serviceName = StringUtils.trimToEmpty(serviceName);
}
result.put(serviceNameField, serviceName);
result.put(lastRefTimeField, System.currentTimeMillis());
}
Loggers.SRV_LOG.warn("PUSH-SERVICE: service is not modified", e);
}

Expand Down

0 comments on commit 234c26f

Please sign in to comment.