Rajesh KSV created HIVE-20906:

             Summary: Are Hive locks really ephemeral ?
                 Key: HIVE-20906
                 URL: https://issues.apache.org/jira/browse/HIVE-20906
             Project: Hive
          Issue Type: Bug
            Reporter: Rajesh KSV

I am using Hive 2.3.3.
According to docs ([https://cwiki.apache.org/confluence/display/Hive/Locking]), 
they are ephemeral. But in the Zookeeper and Hive source Code, they seemed to 
be non-ephemeral. 
I ran the following query in Hive.
*lock table discovery.defaultns*
When I see the lock in zookeeper, it doesn't look like ephemeral node.
[zk: localhost:2181(CONNECTED) 55] get 
 table discovery.defaultns exclusive:
cZxid = 0x2400296808
ctime = Mon Nov 12 19:15:55 IST 2018
mZxid = 0x2400296808
mtime = Mon Nov 12 19:15:55 IST 2018
pZxid = 0x2400296808
cversion = 0
dataVersion = 0
aclVersion = 0
*ephemeralOwner = 0x0*
dataLength = 134
numChildren = 0
Also in the code - 
 the lock is KeepAlive/PERSISTENT and not EPHIMERAL . 
*HiveLock lck = lockMgr.lock(new HiveLockObject(tbl, lockData), mode, true);* 

Is it a bug or am I missing something? Thanks!

This message was sent by Atlassian JIRA

Reply via email to