zhangshuyan0 commented on code in PR #6562:
URL: https://github.com/apache/hadoop/pull/6562#discussion_r1503611470
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeManager.java:
##########
@@ -2043,10 +2043,13 @@ public void setBalancerBandwidth(long bandwidth) throws
IOException {
}
}
- public void markAllDatanodesStale() {
+ public void markAllDatanodesStaleAndSetNeedKeyUpdate() {
LOG.info("Marking all datanodes as stale");
synchronized (this) {
for (DatanodeDescriptor dn : datanodeMap.values()) {
+ if (blockManager.isBlockTokenEnabled()) {
+ dn.setNeedKeyUpdate(true);
Review Comment:
Why do you `setNeedKeyUpdate` here?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]