You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Xinli Shang (JIRA)" <ji...@apache.org> on 2018/10/29 16:34:01 UTC

[jira] [Created] (RANGER-2271) RangerKeyStoreProvider#createKey() should write persistent store first before writing to cache

Xinli Shang created RANGER-2271:
-----------------------------------

             Summary: RangerKeyStoreProvider#createKey() should write persistent store first before writing to cache 
                 Key: RANGER-2271
                 URL: https://issues.apache.org/jira/browse/RANGER-2271
             Project: Ranger
          Issue Type: Bug
          Components: kms
            Reporter: Xinli Shang


Inside RangerKeyStoreProvider#createKey(), the code write cache first 

            cache.put(name, meta);

Then write to keyStore

        innerSetKeyVersion(...)

 

If innerSetKeyVersion() failed, the cache will have the key which doesn't exist in keyStore. 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)