zhengchenyu commented on PR #4441:
URL: https://github.com/apache/hadoop/pull/4441#issuecomment-1156196587

   > Thanks @zhengchenyu for your review and comment. This a draft PR related 
to [PR4311](https://github.com/apache/hadoop/pull/4311). I'm not following 
[HDFS-13522](https://issues.apache.org/jira/browse/HDFS-13522).002.patch, and I 
will read it carefully.
   > 
   > Client -> RBF -> NameNode. Whether RBF proxies the read request to the 
Observer should have nothing to do with the Client.
   
   In HDFS-13522.002.patch, isReadCall method, router will check 
"call.getClientStateId() == -1L". This is rpc call level. If observer read is 
disable in client side, call.getClientStateId() in router side will return -1, 
router will ignore observer namenode.
   I think config in client side may be more flexible.
   
   By the way, I add some extra comment. In HDFS-13522.002.patch, router only 
check whether state id is -1. They don't pass client's state id. If 
dfs.federation.router.observer.auto-msync-period are not set to 0, but a large 
number, will be wrong.
   In our draft design, after apply HDFS-13522.002.patch, I wanna proxy 
client's state id. For busy work recently, I delay it. Maybe we can work and 
discuss it together.
   


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