Skip to content

Commit

Permalink
Merge pull request #2111 from arunans23/vfs
Browse files Browse the repository at this point in the history
Remove obsolete implementation from VFSTransportListener
  • Loading branch information
arunans23 authored Nov 6, 2023
2 parents 5b88561 + d049957 commit 218ed0c
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,23 +201,8 @@ protected void scanFileOrDirectory(final PollTableEntry entry, String fileURI) {
log.debug("Polling: " + VFSUtils.maskURLPassword(fileURI));
}
if (entry.isClusterAware()) {
boolean leader = true;
ClusteringAgent agent = getConfigurationContext().getAxisConfiguration().getClusteringAgent();
log.warn("Although proxy is cluster aware, clustering config are not present, hence running the" +
" the polling task in this node");
if (!leader) {
if (log.isDebugEnabled()) {
log.debug("This Member is not the leader");
}
entry.setLastPollState(PollTableEntry.NONE);
long now = System.currentTimeMillis();
entry.setLastPollTime(now);
entry.setNextPollTime(now + entry.getPollInterval());
onPollCompletion(entry);
return;
}
if (log.isDebugEnabled()) {
log.debug("This Member is the leader");
log.debug("Cluster aware flag is enabled.");
}
}
FileSystemOptions fso = null;
Expand Down

0 comments on commit 218ed0c

Please sign in to comment.