From 36b2bab88830bad251a465680566fe5c557c9966 Mon Sep 17 00:00:00 2001 From: Thomas Marquardt Date: Wed, 12 Sep 2018 21:53:09 +0000 Subject: [PATCH] HADOOP-15740. ABFS: Check variable names during initialization of AbfsClientThrottlingIntercept. Contributed by Sneha Varma. --- .../fs/azurebfs/services/AbfsClientThrottlingIntercept.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClientThrottlingIntercept.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClientThrottlingIntercept.java index 08922198d1d..97ea2a64861 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClientThrottlingIntercept.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClientThrottlingIntercept.java @@ -48,8 +48,8 @@ public final class AbfsClientThrottlingIntercept { writeThrottler = new AbfsClientThrottlingAnalyzer("write"); } - public static synchronized void initializeSingleton(boolean isAutoThrottlingEnabled) { - if (!isAutoThrottlingEnabled) { + public static synchronized void initializeSingleton(boolean enableAutoThrottling) { + if (!enableAutoThrottling) { return; } if (singleton == null) {