[
https://issues.apache.org/jira/browse/HDFS-13923?focusedWorklogId=713523&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-713523
]
ASF GitHub Bot logged work on HDFS-13923:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jan/22 07:03
Start Date: 24/Jan/22 07:03
Worklog Time Spent: 10m
Work Description: ayushtkn commented on pull request #3912:
URL: https://github.com/apache/hadoop/pull/3912#issuecomment-1019778900
The title and the actual code are poles apart. From the title it looks like
you are going to add some config. Where as the actual code is just removing a
TODO.
Can you update the title. And add the description why this is no longer a
TODO, for people coming in future to know, why this TODO was dropped
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 713523)
Time Spent: 0.5h (was: 20m)
> Add a configuration to turn on/off observer reads
> -------------------------------------------------
>
> Key: HDFS-13923
> URL: https://issues.apache.org/jira/browse/HDFS-13923
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Chao Sun
> Assignee: Shweta
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> In some situations having a config to turn on/off observer reads dynamically
> may be useful. For instance, some applications may be sensitive for data
> freshness and want to always reach directly to active NN. In a more complex
> scenario, services such as Presto may want to apply observer reads for
> different types of queries. In this case, simply change
> {{dfs.client.failover.proxy.provider.<nameservice>}} may not be enough, since
> with FileSystem cache (which is usually turned on) will ignore the change and
> still use the same FileSystem object.
> Here I'm proposing to add a flag in {{HdfsClientConfigKeys}}, such as
> {{dfs.client.observer.reads.enabled}}, that can be used to dynamically turn
> on/off observer reads. The FileSystem cache key should also take account of
> this flag in its {{hashCode}} and {{equals}} impl, so that different
> FileSystem objects will be used depending on the flag.
>
> cc [~shv], [~xkrogen], [~vagarychen], [~zero45] for discussion.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]