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

Brahma Reddy Battula commented on HDFS-14636:
---------------------------------------------

[~xkrogen]  Currently we are checking only Observer STATE. IMO, we can check 
"AlignmentContext" where this can be set by OBPP only .This will avoid the 
restictions of configuring the NN list(which is not documented yet) where user 
want to switch b/w CFPP and OBPP for performance/process availablity. 

 
{code:java}
@Override
 public boolean allowStaleReads() {
 if (state == OBSERVER_STATE) {
 return true;
 }
 return allowStaleStandbyReads;
 }

}{code}

> SBN : If you configure the default proxy provider still read Request going to 
> Observer namenode only.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-14636
>                 URL: https://issues.apache.org/jira/browse/HDFS-14636
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 3.1.1
>            Reporter: Harshakiran Reddy
>            Assignee: Ranith Sardar
>            Priority: Major
>              Labels: SBN
>
> {noformat}
> In Observer cluster, will configure the default proxy provider instead of 
> "org.apache.hadoop.hdfs.server.namenode.ha.ObserverReadProxyProvider", still 
> Read request going to Observer namenode only.{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to