[ https://issues.apache.org/jira/browse/HDFS-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16506297#comment-16506297 ]
Chao Sun commented on HDFS-12976: --------------------------------- Hey [~xkrogen]. Thanks for the feedback. The reason for keeping {{currentIndex}} is to solve the race condition when the proxy is shared among multiple threads. Another intention is to help distribute the observer proxies into different threads. But, I'm open for opinions. Regarding the second comment, do you mean situations like when an observer transitioned to standby but is not reflected in the observer proxy list? If that's so, I'm thinking this should be handled in the {{performFailover}} method for {{ObserverReadProxyProvider}}, where it should refresh the observer proxy list. We also need to figure out a way to trigger this method properly. > Introduce ObserverReadProxyProvider > ----------------------------------- > > Key: HDFS-12976 > URL: https://issues.apache.org/jira/browse/HDFS-12976 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Konstantin Shvachko > Assignee: Chao Sun > Priority: Major > Attachments: HDFS-12976-HDFS-12943.000.patch, HDFS-12976.WIP.patch > > > {{StandbyReadProxyProvider}} should implement {{FailoverProxyProvider}} > interface and be able to submit read requests to ANN and SBN(s). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org