You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2009/08/25 01:06:59 UTC
[jira] Commented: (HIVE-789) Add get_unique_id() call to metastore
[ https://issues.apache.org/jira/browse/HIVE-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747131#action_12747131 ]
Todd Lipcon commented on HIVE-789:
----------------------------------
Forgot to mention - this patch is against branch-0.4.0, though it shouldn't be hard to apply the same thing to trunk. Assuming this seems like a reasonable way to fix the races in HIVE-718 I'll port it to trunk.
> Add get_unique_id() call to metastore
> -------------------------------------
>
> Key: HIVE-789
> URL: https://issues.apache.org/jira/browse/HIVE-789
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Metastore
> Reporter: Todd Lipcon
> Fix For: 0.4.0
>
> Attachments: hive-789.patch
>
>
> As noted in HIVE-718, it can be tough to avoid race conditions when multiple clients are trying to move files into the same directory. This patch adds a get_unique_id() call to the metastore that returns the current value from an incrementing JDO Sequence so that clients can avoid some races without locks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.