You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "ouchengeng (Jira)" <ji...@apache.org> on 2020/03/19 08:54:00 UTC

[jira] [Created] (SENTRY-2553) Auth path is not deleted in mysql when dropping table

ouchengeng created SENTRY-2553:
----------------------------------

             Summary: Auth path is not deleted in mysql when dropping table
                 Key: SENTRY-2553
                 URL: https://issues.apache.org/jira/browse/SENTRY-2553
             Project: Sentry
          Issue Type: Bug
          Components: Sentry, sentrystore
    Affects Versions: 2.2.0
            Reporter: ouchengeng


SENTRY-2249 made pathsToPersist detached from MAuthzPathsMapping.

So, deleting MAuthzPathsMapping object won't deleting paths in Mysql, and these paths are kept in Mysql as garbage. This happens when processing drop_table events.

We need to delete pathsToPersist, before deleting a MAuthzPathsMapping object.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)