[
https://issues.apache.org/jira/browse/HBASE-13249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
He Liangliang resolved HBASE-13249.
-----------------------------------
Resolution: Cannot Reproduce
The trunk code check changes like this and won't repro:
{code}
hasChanges |= (lastTimestamp >= lastModifiedTime)
{code}
So it will always retry when the timestamp actually has not changed, wired.
> SnapshotFileCache can get corrupt after runtime error
> -----------------------------------------------------
>
> Key: HBASE-13249
> URL: https://issues.apache.org/jira/browse/HBASE-13249
> Project: HBase
> Issue Type: Bug
> Reporter: He Liangliang
> Assignee: He Liangliang
>
> In refreshCache, if step 3 fails for some reason, the successive call may
> return success directly but the cache is already corrupt (got cleared in the
> previous failed call):
> {quote}
> // 1. update the modified time
> this.lastModifiedTime = lastTimestamp;
> // 2.clear the cache
> this.cache.clear();
> Map<String, SnapshotDirectoryInfo> known = new HashMap<String,
> SnapshotDirectoryInfo>();
> // 3. check each of the snapshot directories
> {quote}
> This will cause files got deleted unexpectedly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)