[ https://issues.apache.org/jira/browse/KNOX-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16174108#comment-16174108 ]
ASF subversion and git services commented on KNOX-1054: ------------------------------------------------------- Commit d3f507f9424b7deb355696c1c6d5f5aad142157d in knox's branch refs/heads/master from [~moresandeep] [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=d3f507f ] KNOX-1054 - Make DefaultURLManager thread-safe (Phil Zampino via Sandeep More) > 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 > Fix For: 0.14.0 > > Attachments: KNOX-1054.patch > > > 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)