[ 
https://issues.apache.org/jira/browse/HIVE-21714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16838293#comment-16838293
 ] 

Abhishek Somani commented on HIVE-21714:
----------------------------------------

You can see HIVE-14988.

As in the description, old data will be retained and concurrent readers could 
be allowed to read while an IOW is happening.

"The advantage is that IOW doesn't need to be a mutexed operation. All readers 
that stared before this IOW can proceed at the
snapshot (Acid tables support at Snapshot Isolation) they locked in."

 

Although this doesn't happen currently as an IOW takes an exclusive lock(X), I 
think the design is intended this way so that the lock that IOW takes could be 
relaxed in the future(and perhaps allow concurrent readers).

 

> INSERT OVERWRITE TABLE doesn't clean the table directory before overwriting 
> with ACID table
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21714
>                 URL: https://issues.apache.org/jira/browse/HIVE-21714
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Ivan Suller
>            Assignee: Ivan Suller
>            Priority: Major
>         Attachments: HIVE-21714.1.patch, HIVE-21714.1.patch
>
>
> The issue of HIVE-18702 is present for ACID tables as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to