Details
Description
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.
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-14636 SBN : If you configure the default proxy provider still read Request going to Observer namenode only.
- Resolved