From 13c70e9ba3c168b6aa2184e183291411b346d531 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 08922198d1..97ea2a6486 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 @@ private 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) {