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

Hemanth Boyina commented on HDFS-13522:
---------------------------------------

thanks [~surendrasingh] for the review
{quote} # Load balancing between multiple observer.{quote}
we are shuffling the observers so that same observer doesn't always receive the 
call
{code:java}
// shuffle the observers if observer are greater than 1
// so same observer  doesn't come always
if (observerRead && observerMemberships.size() > 1) {
  Collections.shuffle(observerMemberships);
  Collections
      .sort(nonObserverMemberships, new NamenodePriorityComparator());
} {code}
{quote}2.Webhdfs call, I think you may get NPE for webhdfs call
{quote}
will fix and add a test case and will update the patch

> Support observer node from Router-Based Federation
> --------------------------------------------------
>
>                 Key: HDFS-13522
>                 URL: https://issues.apache.org/jira/browse/HDFS-13522
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: federation, namenode
>            Reporter: Erik Krogen
>            Assignee: Chao Sun
>            Priority: Major
>         Attachments: HDFS-13522.001.patch, HDFS-13522_WIP.patch, RBF_ 
> Observer support.pdf, Router+Observer RPC clogging.png, 
> ShortTerm-Routers+Observer.png
>
>
> Changes will need to occur to the router to support the new observer node.
> One such change will be to make the router understand the observer state, 
> e.g. {{FederationNamenodeServiceState}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to