[ https://issues.apache.org/jira/browse/HDFS-14660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16889832#comment-16889832 ]
Chao Sun edited comment on HDFS-14660 at 7/21/19 10:08 PM: ----------------------------------------------------------- {quote}For the special value we may raise separate JIRA.(Just we should ensure it gets done too.) {quote} [~ayushtkn]: could you clarify a little bit on this use case? is the purpose to let client read stale data from observer? If so, you can already achieve this with {{msync}}, no? just don't do {{msync}} from client side. was (Author: csun): {quote}*For the special value we may raise separate JIRA.(Just we should ensure it gets done too.) {quote} [~ayushtkn]: could you clarify a little bit on this use case? is the purpose to let client read stale data from observer? If so, you can already achieve this with {{msync}}, no? just don't do {{msync}} from client side. > [SBN Read] ObserverNameNode should throw StandbyException for requests not > from ObserverProxyProvider > ----------------------------------------------------------------------------------------------------- > > Key: HDFS-14660 > URL: https://issues.apache.org/jira/browse/HDFS-14660 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Chao Sun > Assignee: Chao Sun > Priority: Major > Attachments: HDFS-14660.000.patch > > > In a HDFS HA cluster with consistent reads enabled (HDFS-12943), clients > could be using either {{ObserverReadProxyProvider}}, > {{ConfiguredProxyProvider}}, or something else. Since observer is just a > special type of SBN and we allow transitions between them, a client NOT using > {{ObserverReadProxyProvider}} will need to have > {{dfs.ha.namenodes.<nameservice>}} include all NameNodes in the cluster, and > therefore, it may send request to a observer node. > For this case, we should check whether the {{stateId}} in the incoming RPC > header is set or not, and throw an {{StandbyException}} when it is not. -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org