accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ACCUMULO-1292) Tablet constructor can hang on vfs classloader, preventing tablets from loading
Date Thu, 22 Jan 2015 20:48:35 GMT

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

Keith Turner edited comment on ACCUMULO-1292 at 1/22/15 8:48 PM:
-----------------------------------------------------------------

There is a race condition in the following code

{code:java}
     final VFSClassLoader cl = clRef.get();
     if (cl == null || cl.getParent() != parent.getClassLoader()) {
{code}

Check done w/ old version of {{cl}} may force update unnecessarily.  Also check {{cl.getParent()
!= parent.getClassLoader()}} may cause a blocking refresh, when an older version of the classloader
could be returned immediately.


was (Author: kturner):
There is a race condition in the following code

{code:java}
     final VFSClassLoader cl = clRef.get();
     if (cl == null || cl.getParent() != parent.getClassLoader()) {
{code}

Check done w/ old version of {{cl}} may force update unnecessarily.  Also check {{ cl.getParent()
!= parent.getClassLoader()}} may cause a blocking refresh, when an older version of the classloader
could be returned immediately.

> Tablet constructor can hang on vfs classloader, preventing tablets from loading
> -------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-1292
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1292
>             Project: Accumulo
>          Issue Type: Bug
>          Components: tserver
>    Affects Versions: 1.5.0, 1.6.0, 1.6.1
>            Reporter: John Vines
>            Assignee: Eric Newton
>             Fix For: 1.7.0, 1.6.3
>
>         Attachments: ACCUMULO-1292-04.patch, ACCUMULO-1292-atomic-update.patch, ACCUMULO-1292-using-locks.patch,
ACCUMULO-1292.patch
>
>
> Taken from TODO from r1424106 regarding ACCUMULO-867. This is something that we should
at least look into more before 1.5 is released.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message