You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by so...@apache.org on 2021/07/09 09:45:08 UTC
[hadoop] branch branch-3.2 updated: HDFS-15796.
ConcurrentModificationException error happens on NameNode occasionally.
Contributed by Daniel Ma
This is an automated email from the ASF dual-hosted git repository.
sodonnell pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new e2eacbd HDFS-15796. ConcurrentModificationException error happens on NameNode occasionally. Contributed by Daniel Ma
e2eacbd is described below
commit e2eacbd08978665b2c90743dba628afe01475263
Author: S O'Donnell <so...@cloudera.com>
AuthorDate: Fri Jul 9 10:03:57 2021 +0100
HDFS-15796. ConcurrentModificationException error happens on NameNode occasionally. Contributed by Daniel Ma
(cherry picked from commit b6c06c4b76ca5c206639e2ddea4f3bef393dbb11)
---
.../hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java
index 6e1af57..8c01457 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/PendingReconstructionBlocks.java
@@ -333,7 +333,7 @@ class PendingReconstructionBlocks {
synchronized (pendingReconstructions) {
PendingBlockInfo found = pendingReconstructions.get(block);
if (found != null) {
- return found.targets;
+ return new ArrayList<>(found.targets);
}
}
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org