[
https://issues.apache.org/jira/browse/HADOOP-14546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16065751#comment-16065751
]
Hudson commented on HADOOP-14546:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11937 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/11937/])
HADOOP-14546. Azure: Concurrent I/O does not work when secure.mode is (liuml07:
rev 7e031c2c18b8812ec9f843ed3b4abe9e6d12bb28)
* (edit)
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/AzureBlobStorageTestAccount.java
* (edit)
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestAzureConcurrentOutOfBandIo.java
* (edit)
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java
* (edit)
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/SendRequestIntercept.java
* (add)
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestAzureConcurrentOutOfBandIoWithSecureMode.java
> Azure: Concurrent I/O does not work when secure.mode is enabled
> ---------------------------------------------------------------
>
> Key: HADOOP-14546
> URL: https://issues.apache.org/jira/browse/HADOOP-14546
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: 2.9.0, 3.0.0-alpha4
> Reporter: Thomas
> Assignee: Thomas
> Fix For: 2.9.0, 3.0.0-alpha4
>
> Attachments: HADOOP-14546.001.patch, HADOOP-14546.002.patch,
> HADOOP-14546.003.patch
>
>
> This change allows the concurrent I/O feature
> (fs.azure.io.read.tolerate.concurrent.append = true) to work when secure mode
> is enabled (fs.azure.secure.mode = true).
>
> While running the test TestAzureConcurrentOutOfBandIo.testReadOOBWrites, I
> discovered that it fails when fs.azure.secure.mode = true with the error
> below:
>
> com.microsoft.azure.storage.StorageException: The condition specified using
> HTTP conditional header(s) is not met.
> at
> com.microsoft.azure.storage.core.Utility.initIOException(Utility.java:733)
> at
> com.microsoft.azure.storage.blob.BlobInputStream.dispatchRead(BlobInputStream.java:264)
> at
> com.microsoft.azure.storage.blob.BlobInputStream.readInternal(BlobInputStream.java:448)
> at
> com.microsoft.azure.storage.blob.BlobInputStream.read(BlobInputStream.java:420)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
> at java.io.DataInputStream.read(DataInputStream.java:149)
> at
> org.apache.hadoop.fs.azure.TestAzureConcurrentOutOfBandIo.testReadOOBWrites(TestAzureConcurrentOutOfBandIo.java:167)
>
> There were a couple problems causing this failure:
>
> 1) AzureNativeFileSystemStore.connectToAzureStorageInSecureMode was disabling
> concurrent I/O by setting fs.azure.io.read.tolerate.concurrent.append to
> false.
> 2) SendRequestIntercept was unnecessarily updating the SAS for the request.
> Since this intercept only sets the request header "If-Match: *" to override
> the existing recondition, it is not necessary to update the SAS.
>
> The above issues have been fixed and a new test case has been added so that
> testReadOOBWrites now runs both with and without secure mode enabled.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]