hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hive/Locking" by NamitJain
Date Wed, 05 May 2010 18:06:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hive/Locking" page has been changed by NamitJain.
http://wiki.apache.org/hadoop/Hive/Locking?action=diff&rev1=20&rev2=21

--------------------------------------------------

   * Call getChildren( ) on the lock node without setting the watch flag.
   * If there is a child with a pathname starting with "write-", then the lock cannot be acquired.
Delete the node created in the first step and return.
   * For all parent znodes of T, call getChildren() without setting the watch flag.
-  * If there is a child with a pathname starting with "write-", the lock cannot be acquired.
Delete the node created in the first step and return.
+    * If there is a child with a pathname starting with "write-", the lock cannot be acquired.
Delete the node created in the first step and return.
   * Otherwise the lock is granted.
  
  The 'X' lock for table T is specified as follows:
@@ -88, +88 @@

   * Call getChildren( ) on the lock node without setting the watch flag.
   * If there is a child with a pathname starting with "read-" or anther one starting with
"write-", then the lock cannot be acquired. Delete the node created in the first step and
return.
   * For all parent znodes of T, call getChildren() without setting the watch flag.
-  * If there is a child with a pathname starting with "read-" or "write-", the lock cannot
be acquired. Delete the node created in the first step and return.
+    * If there is a child with a pathname starting with "read-" or "write-", the lock cannot
be acquired. Delete the node created in the first step and return.
   * For all children znodes of T, call getChildren() without setting the watch flag.
-  * If there is a child with a pathname starting with "read-" or "write-", the lock cannot
be acquired. Delete the node created in the first step and return.
+    * If there is a child with a pathname starting with "read-" or "write-", the lock cannot
be acquired. Delete the node created in the first step and return.
   * Otherwise the lock is granted.
  
  The proposed scheme starves the writers for readers. In case of long readers, it may lead
to starvation for writers.

Mime
View raw message