[
https://issues.apache.org/jira/browse/HDFS-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508270#comment-16508270
]
Erik Krogen edited comment on HDFS-12976 at 6/11/18 4:11 PM:
-------------------------------------------------------------
[~vagarychen]:
{quote}
The thing is that, the current patch looks at ReadOnly to determine if a call
should go to observer, meaning if a method is annotated with ReadOnly, it
always go to Observer, is this the case? Because there may be situations where
we want to make a read call to active, which becomes impossible. I guess a more
ideal way would probably be having new annotations for observer operation and
active options, which is also for better readability.
{quote}
The ReadOnly annotation added in HDFS-13578 supports a flag {{activeOnly}} to
indicate that, although it is a read operation, it should only be served by the
active. Does this meet your requirement or are you saying there should be a way
to dynamically decide?
was (Author: xkrogen):
{quote}
The thing is that, the current patch looks at ReadOnly to determine if a call
should go to observer, meaning if a method is annotated with ReadOnly, it
always go to Observer, is this the case? Because there may be situations where
we want to make a read call to active, which becomes impossible. I guess a more
ideal way would probably be having new annotations for observer operation and
active options, which is also for better readability.
{quote}
The ReadOnly annotation added in HDFS-13578 supports a flag {{activeOnly}} to
indicate that, although it is a read operation, it should only be served by the
active. Does this meet your requirement or are you saying there should be a way
to dynamically decide?
> 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: [email protected]
For additional commands, e-mail: [email protected]