[
https://issues.apache.org/jira/browse/SENTRY-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005119#comment-16005119
]
Sergio Peña commented on SENTRY-1741:
-------------------------------------
The INSERT event is new since Hive 1.2.0, so this is not even handled by the
old behavior of Sentry.
Below is more info about the event:
{noformat}
An INSERT event is only triggered if Hive has "hive.metastore.dml.events"
enabled (disabled by default).
This event is triggered by the HMS client. The HMS server only provides an API
to allow clients fire an INSERT event.
An INSERT event happens only for non-temporary tables, and it contains the
following information:
- Database name
- Table name
- Files created
- Partitions created
The INSERT event happens with the LOAD command that loads a directory into a
table or partition.
{noformat}
Should Sentry handle this event? I don't think so because this is only handled
by HMS clients. Any other client that calls the HMS server won't triggered this
event.
I don't understand the reason of this event, probably is needed for backup
notifications where these backup apps get info about new files added to a
db/table, so they can backup those files immediately.
> HMSFollower doesn't handle INSERT operation
> -------------------------------------------
>
> Key: SENTRY-1741
> URL: https://issues.apache.org/jira/browse/SENTRY-1741
> Project: Sentry
> Issue Type: Sub-task
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Alexander Kolbasov
> Assignee: Sergio Peña
> Fix For: sentry-ha-redesign
>
>
> Currently HMSFollower doesn't do anything when the operation is INSERT. We
> should investigate what should happen for it.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)