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
This commit is contained in:
parent
e0cd0a82e0
commit
44ae2fa8e5
@ -766,7 +766,7 @@ public AbfsInputStream openFileForRead(Path path,
|
|||||||
eTag = ((VersionedFileStatus) fileStatus).getVersion();
|
eTag = ((VersionedFileStatus) fileStatus).getVersion();
|
||||||
} else {
|
} else {
|
||||||
if (fileStatus != null) {
|
if (fileStatus != null) {
|
||||||
LOG.warn(
|
LOG.debug(
|
||||||
"Fallback to getPathStatus REST call as provided filestatus "
|
"Fallback to getPathStatus REST call as provided filestatus "
|
||||||
+ "is not of type VersionedFileStatus");
|
+ "is not of type VersionedFileStatus");
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.MIN_BUFFER_SIZE;
|
import static org.apache.hadoop.fs.azurebfs.constants.FileSystemConfigurations.MIN_BUFFER_SIZE;
|
||||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.createFile;
|
import static org.apache.hadoop.fs.contract.ContractTestUtils.createFile;
|
||||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.dataset;
|
import static org.apache.hadoop.fs.contract.ContractTestUtils.dataset;
|
||||||
import static org.apache.hadoop.fs.impl.FutureIOSupport.awaitFuture;
|
import static org.apache.hadoop.util.functional.FutureIO.awaitFuture;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contract test for seek operation.
|
* Contract test for seek operation.
|
||||||
|
Loading…
Reference in New Issue
Block a user