[
https://issues.apache.org/jira/browse/HDFS-16504?focusedWorklogId=740639&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-740639
]
ASF GitHub Bot logged work on HDFS-16504:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Mar/22 03:02
Start Date: 14/Mar/22 03:02
Worklog Time Spent: 10m
Work Description: Neilxzn opened a new pull request #4068:
URL: https://github.com/apache/hadoop/pull/4068
…eckOperation when NN process getBlocks
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
https://issues.apache.org/jira/browse/HDFS-16504
### How was this patch tested?
no new test
### For code changes:
add new config `dfs.namenode.get-blocks.check.operation`. Whether enable
checkOperation when Namenode process getBlocks. It is enabled (true) by
default.
--
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: 740639)
Remaining Estimate: 0h
Time Spent: 10m
> add `dfs.namenode.get-blocks.check.operation` to enable or disable
> checkOperation when NNs process getBlocks
> ------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-16504
> URL: https://issues.apache.org/jira/browse/HDFS-16504
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: balancer & mover, namanode
> Affects Versions: 3.4.0
> Reporter: Max Xie
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> HDFS-13183 add a nice feature that Standby NameNode can process getBlocks
> request to reduce Active load. Namenode must set `dfs.ha.allow.stale.reads
> = true` to enable this feature. However, if we set `dfs.ha.allow.stale.reads
> = true`, Standby Namenode will be able to process all read requests, which
> may lead to yarn jobs fail because Standby Namenode is stale .
> Maybe we should add a config `dfs.namenode.get-blocks.check.operation=false`
> for namenode to disable check operation when namenode process getBlocks
> request.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]