CapMoon opened a new pull request, #8760:
URL: https://github.com/apache/hadoop/pull/8760

   HDFS-17982. RBF should return StandbyException when no Active NameNode is 
known
   
   ### Description of PR
   A Router may have an incomplete view of the NameNodes in a nameservice and 
know only about Observer NameNodes. When a request must be forwarded to the 
Active NameNode, the Router skips those Observer candidates and makes no RPC 
calls. As a result, the collected IOException map is empty. 
   
   The current failure handling can treat this empty map as if every candidate 
failed to connect and return ConnectException. Instead, the Router should 
return StandbyException so the client can retry the request through another 
Router.
   
   ### How was this patch tested?
   Add a regression test that invokes a request with only Observer candidates 
when Observer reads are disabled, and verifies that the Router returns 
StandbyException when no NameNode RPC is attempted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to