You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2015/03/03 00:59:06 UTC

[jira] [Created] (ACCUMULO-3634) AuthenticationTokenSecretManager might delete key while ZooAuthenticationKeyWatcher enumerates existing keys

Josh Elser created ACCUMULO-3634:
------------------------------------

             Summary: AuthenticationTokenSecretManager might delete key while ZooAuthenticationKeyWatcher enumerates existing keys
                 Key: ACCUMULO-3634
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3634
             Project: Accumulo
          Issue Type: Bug
          Components: master, tserver
            Reporter: Josh Elser
            Assignee: Josh Elser
            Priority: Minor
             Fix For: 1.7.0


Noticed the following race condition.

The secret manager (in the master) on startup will enumerate the old keys used for creating delegation tokens and delete the keys that are expired.

At the same time, the watcher (in each tserver) might see some updates to these keys and update the secret manager. There's a race condition there that the watcher might try to read a key that the secret manager just deleted.

Need to catch the NoNodeException in the watcher and just accept that it's ok if one of these children are deleted to avoid a scary error in the monitor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)