HBASE-13075 TableInputFormatBase spuriously warning about multiple initializeTable calls
This commit is contained in:
parent
18402cc850
commit
365054c110
|
@ -231,7 +231,7 @@ implements InputFormat<ImmutableBytesWritable, Result> {
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
protected void initializeTable(Connection connection, TableName tableName) 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 " +
|
LOG.warn("initializeTable called multiple times. Overwriting connection and table " +
|
||||||
"reference; TableInputFormatBase will not close these old references when done.");
|
"reference; TableInputFormatBase will not close these old references when done.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -641,7 +641,7 @@ extends InputFormat<ImmutableBytesWritable, Result> {
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
protected void initializeTable(Connection connection, TableName tableName) 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 " +
|
LOG.warn("initializeTable called multiple times. Overwriting connection and table " +
|
||||||
"reference; TableInputFormatBase will not close these old references when done.");
|
"reference; TableInputFormatBase will not close these old references when done.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue