hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vihang Karajgaonkar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19804) msck repair should hold locks
Date Tue, 05 Jun 2018 20:43:00 GMT

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

Vihang Karajgaonkar commented on HIVE-19804:
--------------------------------------------

[~ashutoshc] [~sershe] any thoughts?

> msck repair should hold locks
> -----------------------------
>
>                 Key: HIVE-19804
>                 URL: https://issues.apache.org/jira/browse/HIVE-19804
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Vihang Karajgaonkar
>            Priority: Major
>
> {msck repair table <tablename>}} does not hold locks. This can lead to weird race
conditions when concurrent sessions are running on the same table.  For example if two sessions
run msck on the same table at the same time, they both try to add partitions and they might
both end up with failures due to AlreadyExistsException. Another example would be if a query
is running on a partitioned table while some other session issues msck repair which add/drops
the partitions, it could trigger errors during query execution.



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

Mime
View raw message