Skip to content

Commit 44ae2fa

Browse files
committed
HADOOP-16202. Enhanced openFile(): hadoop-azure changes. (#2584/4)
Stops the abfs connector warning if openFile().withFileStatus() is invoked with a FileStatus is not an abfs VersionedFileStatus. Contributed by Steve Loughran. Change-Id: I85076b365eb30aaef2ed35139fa8714efd4d048e
1 parent e0cd0a8 commit 44ae2fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public AbfsInputStream openFileForRead(Path path,
766766
eTag = ((VersionedFileStatus) fileStatus).getVersion();
767767
} else {
768768
if (fileStatus != null) {
769-
LOG.warn(
769+
LOG.debug(
770770
"Fallback to getPathStatus REST call as provided filestatus "
771771
+ "is not of type VersionedFileStatus");
772772
}

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/contract/ITestAbfsFileSystemContractSeek.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.MIN_BUFFER_SIZE;
3838
import static org.apache.hadoop.fs.contract.ContractTestUtils.createFile;
3939
import static org.apache.hadoop.fs.contract.ContractTestUtils.dataset;
40-
import static org.apache.hadoop.fs.impl.FutureIOSupport.awaitFuture;
40+
import static org.apache.hadoop.util.functional.FutureIO.awaitFuture;
4141

4242
/**
4343
* Contract test for seek operation.

0 commit comments

Comments
 (0)