From 6e8722e49c29a19dd13e161001d2464bb1f22189 Mon Sep 17 00:00:00 2001 From: Konstantin V Shvachko Date: Wed, 5 Nov 2014 09:32:32 -0800 Subject: [PATCH] HDFS-7335. Redundant checkOperation() in FSN.analyzeFileState(). Contributed by Milan Desai. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 707929e257f..75a7834a2ca 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -333,6 +333,9 @@ Release 2.7.0 - UNRELEASED HDFS-7356. Use DirectoryListing.hasMore() directly in nfs. (Li Lu via jing9) + HDFS-7335. Redundant checkOperation() in FSN.analyzeFileState(). + (Milan Desai via shv) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index 76c14234c7d..8c353158735 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -3287,7 +3287,6 @@ public class FSNamesystem implements Namesystem, FSClusterStats, checkBlock(previous); onRetryBlock[0] = null; - checkOperation(OperationCategory.WRITE); checkNameNodeSafeMode("Cannot add block to " + src); // have we exceeded the configured limit of fs objects.