You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Erik Krogen (JIRA)" <ji...@apache.org> on 2019/02/14 16:58:00 UTC
[jira] [Created] (HDFS-14279) [SBN Read] Race condition in
ObserverReadProxyProvider
Erik Krogen created HDFS-14279:
----------------------------------
Summary: [SBN Read] Race condition in ObserverReadProxyProvider
Key: HDFS-14279
URL: https://issues.apache.org/jira/browse/HDFS-14279
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs, namenode
Reporter: Erik Krogen
Assignee: Erik Krogen
There is a race condition in {{ObserverReadProxyProvider#getCurrentProxy()}}:
{code}
private NNProxyInfo<T> getCurrentProxy() {
if (currentProxy == null) {
changeProxy(null);
}
return currentProxy;
}
{code}
{{currentProxy}} is a {{volatile}}. Another {{changeProxy()}} could occur after the {{changeProxy()}} and before the {{return}}, thus making the return value incorrect. I have seen this result in an NPE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org