You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Phil Zampino (JIRA)" <ji...@apache.org> on 2017/09/20 20:51:00 UTC

[jira] [Created] (KNOX-1054) DefaultURLManager is not thread-safe

Phil Zampino created KNOX-1054:
----------------------------------

             Summary: DefaultURLManager is not thread-safe
                 Key: KNOX-1054
                 URL: https://issues.apache.org/jira/browse/KNOX-1054
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.13.0
            Reporter: Phil Zampino
            Assignee: Phil Zampino


org.apache.hadoop.gateway.ha.provider.impl.DefaultURLManager is not thread-safe.

Currently, only the "write" methods are subject to locking. Apparently, there are some assumptions being made about the behavior of the underlying ConcurrentLinkedQueue.

For instance, if a thread is preempted in setActiveURL(String), and another thread invokes getActiveURL(), the urls.peek() result could be incorrect.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)