You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2016/08/15 20:15:20 UTC

[jira] [Created] (SENTRY-1440) Fencing implementation in sentry-ha can create two fencing tables

Alexander Kolbasov created SENTRY-1440:
------------------------------------------

             Summary: Fencing implementation in sentry-ha can create two fencing tables
                 Key: SENTRY-1440
                 URL: https://issues.apache.org/jira/browse/SENTRY-1440
             Project: Sentry
          Issue Type: Bug
          Components: Sentry
    Affects Versions: sentry-ha-redesign
            Reporter: Alexander Kolbasov
            Priority: Minor


The fencing code in sentry-ha has a logic that creates a fencing table when it doesn't exist. The problem is that this code isn't atomic. It is possible for two processes to create their fencing table at the same time. This is rather bad because the remaining fencing code checks that only one such table exists and fails otherwise.

Note that for this to happen the fencing table shouldn't exist and both processes should decide to become active, so this isn't something that is likely to happen, but it is still good to fix.



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