accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1277) Race condition between master and tserver when acquiring tserver lock
Date Wed, 17 Apr 2013 00:31:16 GMT

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

Hudson commented on ACCUMULO-1277:
----------------------------------

Integrated in Accumulo-Trunk #833 (See [https://builds.apache.org/job/Accumulo-Trunk/833/])
    ACCUMULO-1277 made master delay deleting lockless tserver nodes in zookeeper (Revision
1468585)

     Result = SUCCESS
kturner : 
Files : 
* /accumulo/trunk
* /accumulo/trunk/assemble
* /accumulo/trunk/core
* /accumulo/trunk/examples
* /accumulo/trunk/fate/src/main/java/org/apache/accumulo/fate/ZooStore.java
* /accumulo/trunk/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooSession.java
* /accumulo/trunk/pom.xml
* /accumulo/trunk/server
* /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/master/LiveTServerSet.java
* /accumulo/trunk/src

                
> Race condition between master and tserver when acquiring tserver lock
> ---------------------------------------------------------------------
>
>                 Key: ACCUMULO-1277
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1277
>             Project: Accumulo
>          Issue Type: Bug
>          Components: master, tserver
>    Affects Versions: 1.4.3
>            Reporter: Daniel P Truitt
>            Assignee: Keith Turner
>             Fix For: 1.5.0, 1.4.4
>
>
> When restarting a stopped tserver, the following happens:
> The tserver (in TabletServer.announceExistence()) creates an entry in zookeeper at /accumulo/instance-id/tserver/host:port.
> This in turn triggers master to execute the call chain:
> LiveTServerSet.process(WatchedEvent)
> LiveTServerSet.scanServers()
> LiveTServerSet.checkServer(Set<TServerInstance>, Set<TServerInstance>, String,
String)
> The checkServer() method checks to see if the ZooLock data has been created yet (if tserver
loses the race, it has not yet been created) causing master to then delete the tserver node.
 
> When the tserver attempts to create the ZooLock, the parent path no longer exists and
creating the lock fails.  Eventually the tserver will time out waiting to create the lock,
and fail to start.
> This problem is easier to reproduce in a smallish cluster using a single zookeeper node,
where there is more latency between the tserver and zookeeper than there is between the master
and zookeeper.
> This behavior was introduced in the fix for ACCUMULO-1049.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message