hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "He Liangliang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-13249) Concurrency issue in SnapshotFileCache
Date Mon, 16 Mar 2015 11:27:38 GMT
He Liangliang created HBASE-13249:

             Summary: Concurrency issue in SnapshotFileCache
                 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):
    // 1. update the modified time
    this.lastModifiedTime = lastTimestamp;

    // 2.clear the cache
    Map<String, SnapshotDirectoryInfo> known = new HashMap<String, SnapshotDirectoryInfo>();

    // 3. check each of the snapshot directories

This will cause files got deleted unexpectedly.

This message was sent by Atlassian JIRA

View raw message