From 365054c110467d0628019761791281875631f4be Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Thu, 19 Feb 2015 13:59:27 -0600 Subject: [PATCH] HBASE-13075 TableInputFormatBase spuriously warning about multiple initializeTable calls --- .../java/org/apache/hadoop/hbase/mapred/TableInputFormatBase.java | 2 +- .../java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableInputFormatBase.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableInputFormatBase.java index b5b79d2d49a1df94140aa5a546095e9369471176..dd58d5c31e1fcbcc67df49d52038602126c988d9 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableInputFormatBase.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapred/TableInputFormatBase.java @@ -231,7 +231,7 @@ implements InputFormat { * @throws IOException */ protected void initializeTable(Connection connection, TableName tableName) throws IOException { - if (table != null || connection != null) { + if (this.table != null || this.connection != null) { LOG.warn("initializeTable called multiple times. Overwriting connection and table " + "reference; TableInputFormatBase will not close these old references when done."); } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java index 6c42d7f446a05b87549bcca173c0d410bd270ae6..e27251a85421a12f616e27b5986e89a784f9cc43 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java @@ -641,7 +641,7 @@ extends InputFormat { * @throws IOException */ protected void initializeTable(Connection connection, TableName tableName) throws IOException { - if (table != null || connection != null) { + if (this.table != null || this.connection != null) { LOG.warn("initializeTable called multiple times. Overwriting connection and table " + "reference; TableInputFormatBase will not close these old references when done."); } -- 1.7.10.2 (Apple Git-33)