HBASE-13075 TableInputFormatBase spuriously warning about multiple initializeTable calls

This commit is contained in:
Sean Busbey 2015-02-19 13:59:27 -06:00
parent 18402cc850
commit 365054c110
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ implements InputFormat<ImmutableBytesWritable, Result> {
* @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.");
}

View File

@ -641,7 +641,7 @@ extends InputFormat<ImmutableBytesWritable, Result> {
* @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.");
}