Skip to content

Commit 689dd7b

Browse files
sumangala-patkisteveloughran
authored andcommitted
HADOOP-17863. ABFS: Fix compiler deprecation warning in TextFileBasedIdentityHandler (#3332)
Closes #3332 Contributed by Sumangala Patki Change-Id: I2abd33bd62bb734a431cccfc50a52bdeb2bf7db6
1 parent 0557da6 commit 689dd7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TextFileBasedIdentityHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
import org.apache.commons.io.FileUtils;
3131
import org.apache.commons.io.LineIterator;
32+
import org.apache.hadoop.io.IOUtils;
3233

3334
import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.COLON;
3435
import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.EMPTY_STRING;
@@ -189,7 +190,7 @@ private static void loadMap(HashMap<String, String> cache, String fileLocation,
189190
} catch (ArrayIndexOutOfBoundsException e) {
190191
LOG.error("Error while parsing mapping file", e);
191192
} finally {
192-
LineIterator.closeQuietly(it);
193+
IOUtils.cleanupWithLogger(LOG, it);
193194
}
194195
}
195196
}

0 commit comments

Comments
 (0)