You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (JIRA)" <ji...@apache.org> on 2010/08/18 19:16:36 UTC

[jira] Created: (HIVE-1557) increase concurrency

increase concurrency
--------------------

                 Key: HIVE-1557
                 URL: https://issues.apache.org/jira/browse/HIVE-1557
             Project: Hadoop Hive
          Issue Type: Improvement
          Components: Query Processor
            Reporter: Namit Jain


Copying Joy's comment from https://issues.apache.org/jira/browse/HIVE-1293

a little bummed that locks need to be held for entire query execution. that could mean a writer blocking readers for hours.
hive's query plans seem to be of two distinct stages:
1. read a bunch of stuff, compute intermediate/final data
2. move final data into output locations

ie. - a single query never reads what it writes (into a final output location). even if #1 and #2 are mingled today - they can easily be put in order.

in that sense - we only need to get shared locks for all read entities involved in #1 to begin with. once phase #1 is done, we can drop all the read locks and get the exclusive locks for all the write entities in #2, perform #2 and quit. that way exclusive locks are held for a very short duration. i think this scheme is similarly deadlock free (now there are two independent lock acquire/release phases - and each of them can lock stuff in lex. order).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1557) increase concurrency

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-1557:
-----------------------------

        Fix Version/s: 0.7.0
    Affects Version/s: 0.7.0

> increase concurrency
> --------------------
>
>                 Key: HIVE-1557
>                 URL: https://issues.apache.org/jira/browse/HIVE-1557
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 0.7.0
>            Reporter: Namit Jain
>             Fix For: 0.7.0
>
>
> Copying Joy's comment from https://issues.apache.org/jira/browse/HIVE-1293
> a little bummed that locks need to be held for entire query execution. that could mean a writer blocking readers for hours.
> hive's query plans seem to be of two distinct stages:
> 1. read a bunch of stuff, compute intermediate/final data
> 2. move final data into output locations
> ie. - a single query never reads what it writes (into a final output location). even if #1 and #2 are mingled today - they can easily be put in order.
> in that sense - we only need to get shared locks for all read entities involved in #1 to begin with. once phase #1 is done, we can drop all the read locks and get the exclusive locks for all the write entities in #2, perform #2 and quit. that way exclusive locks are held for a very short duration. i think this scheme is similarly deadlock free (now there are two independent lock acquire/release phases - and each of them can lock stuff in lex. order).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.