Details
Description
In SnapshotFileCache#refreshCache, the hasChanges will be judged as:
try { FileStatus dirStatus = fs.getFileStatus(snapshotDir); lastTimestamp = dirStatus.getModificationTime(); hasChanges |= (lastTimestamp >= lastModifiedTime); // >= will make hasChanges always be true
The (lastTimestamp >= lastModifiedTime) will make hasChanges always be true because lastTimestamp will be updated as:
this.lastModifiedTime = lastTimestamp;
So, SnapshotFileCache will always refresh the file cache.