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 09:04:00 UTC
[jira] [Commented] (SENTRY-2553) Auth path is not deleted in db
when dropping table
[ https://issues.apache.org/jira/browse/SENTRY-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062383#comment-17062383 ]
ouchengeng commented on SENTRY-2553:
------------------------------------
Submit a patch, please help review.
> Auth path is not deleted in db 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
> Priority: Major
> Attachments: SENTRY-2553.001.patch
>
>
> 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)