hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jinglun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-13388) RequestHedgingProxyProvider calls multiple configured NNs all the time
Date Tue, 03 Apr 2018 11:12:00 GMT
Jinglun created HDFS-13388:
------------------------------

             Summary: RequestHedgingProxyProvider calls multiple configured NNs all the time
                 Key: HDFS-13388
                 URL: https://issues.apache.org/jira/browse/HDFS-13388
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs-client
            Reporter: Jinglun


In HDFS-7858 RequestHedgingProxyProvider was designed to "first simultaneously call multiple
configured NNs to decide which is the active Namenode and then for subsequent calls it will
invoke the previously successful NN ." But the current code call multiple configured NNs every
time even when we already got the successful NN. 
That's because in RetryInvocationHandler.java, ProxyDescriptor's member proxyInfo is assigned
only when it is constructed or when failover occurs. RequestHedgingProxyProvider.currentUsedProxy
is null in both cases, so the only proxy we can get is always a dynamic proxy handled by RequestHedgingInvocationHandler.class.
It handles method invoke by call multiple configured NNs.



--
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


Mime
View raw message