Skip to content
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

[ISSUE #11253]To fix the triggering of the listener upon failover con… #11254

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static ScheduledThreadPoolExecutor getNotifyBlockMonitor() {
LOGGER.info("nacos.cache.data.init.snapshot = {} ", initSnapshot);
}

private final String envName;
public final String envName;

private final ConfigFilterChainManager configFilterChainManager;

Expand Down Expand Up @@ -124,13 +124,13 @@ static ScheduledThreadPoolExecutor getNotifyBlockMonitor() {
/**
* local cache change timestamp.
*/
private volatile AtomicLong lastModifiedTs = new AtomicLong(0);
private final AtomicLong lastModifiedTs = new AtomicLong(0);

/**
* notify change flag,for notify&sync concurrent control. 1.reset to false if starting to sync with server. 2.update
* to true if receive config change notification.
*/
private volatile AtomicBoolean receiveNotifyChanged = new AtomicBoolean(false);
private final AtomicBoolean receiveNotifyChanged = new AtomicBoolean(false);

private int taskId;

Expand All @@ -139,7 +139,7 @@ static ScheduledThreadPoolExecutor getNotifyBlockMonitor() {
/**
* if is cache data md5 sync with the server.
*/
private volatile AtomicBoolean isConsistentWithServer = new AtomicBoolean();
private final AtomicBoolean isConsistentWithServer = new AtomicBoolean();

/**
* if is cache data is discard,need to remove.
Expand Down
Loading
Loading