[
https://issues.apache.org/jira/browse/HDFS-15108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17012223#comment-17012223
]
Íñigo Goiri edited comment on HDFS-15108 at 1/9/20 8:51 PM:
------------------------------------------------------------
Can we do a better cleanup of the cache and just remove what we need instead of
everything?
Otherwise, I'm fine with this approach even though is a little invasive.
Let's create a method to do String to InetSocketAddress.
In there we can cache rpcAddr.indexOf(":") and probably do a split.
Also, for the second
{{namenodeResolver.getNamenodesForNameserviceId(NAMESERVICES[0]).get(0);}} we
should create a new FederationNamenodeContext (namenode1).
was (Author: elgoiri):
Can we do a better cleanup of the cache and just remove what we need instead of
everything?
Otherwise, I'm fine with this approach even though is a little invasive.
Let's create a method to do String to InetSocketAddress.
In there we can cache rpcAddr.indexOf(":") and probably do a split.
> RBF: MembershipNamenodeResolver should invalidate cache incase of active
> namenode update
> ----------------------------------------------------------------------------------------
>
> Key: HDFS-15108
> URL: https://issues.apache.org/jira/browse/HDFS-15108
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Attachments: HDFS-15108-01.patch, HDFS-15108-02.patch
>
>
> If a failover happens, {{namenodeResolver.updateActiveNamenode(nsId,
> address);}} is called, but this doesn't invalidates the cache, so as the next
> time the correct active is fetched.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]