Skip to content

Commit

Permalink
Add comments about config client failover (alibaba#8327) (alibaba#8343)
Browse files Browse the repository at this point in the history
  • Loading branch information
HotSince91 authored May 12, 2022
1 parent 4d8a762 commit c68956b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ private String getConfigInner(String tenant, String dataId, String group, long t
cr.setTenant(tenant);
cr.setGroup(group);

// use local config first
// We first try to use local failover content if exists.
// A config content for failover is not created by client program automatically,
// but is maintained by user.
// This is designed for certain scenario like client emergency reboot,
// changing config needed in the same time, while nacos server is down.
String content = LocalConfigInfoProcessor.getFailover(worker.getAgentName(), dataId, group, tenant);
if (content != null) {
LOGGER.warn("[{}] [get-config] get failover ok, dataId={}, group={}, tenant={}, config={}",
Expand Down

0 comments on commit c68956b

Please sign in to comment.