[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2016-01-09 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Attachment: HADOOP-12551.004.patch

[~cnauroth] I apologise, I mis-interpreted the comment. I have changed all the 
multi-threaded tests to be conistent in v004 of the patch. 

Testing is same as v003

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Attachments: HADOOP-12551.001.patch, HADOOP-12551.002.patch, 
> HADOOP-12551.003.patch, HADOOP-12551.004.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2016-01-09 Thread Chris Nauroth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated HADOOP-12551:
---
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 2.8.0
   Status: Resolved  (was: Patch Available)

+1 for patch v004.  I have committed this to trunk, branch-2 and branch-2.8.  
[~dchickabasapa], thank you for the patch.

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Fix For: 2.8.0
>
> Attachments: HADOOP-12551.001.patch, HADOOP-12551.002.patch, 
> HADOOP-12551.003.patch, HADOOP-12551.004.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2016-01-08 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Attachment: HADOOP-12551.002.patch

[~cnauroth] Thanks a lot for the review. Attaching patch with the 
Multi-threaded test fix you suggested. 

While submitting the patch I built it using checkstyle flag, but didn't find 
any new style check warnings. So I am kicking of a QA build, to see if I am 
missing anything. 

Testing: The patch contains new tests to verify the changes made. Also changes 
have been tested against FileSystemContractLive tests for the both Block Blobs 
and Page Blobs.

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Attachments: HADOOP-12551.001.patch, HADOOP-12551.002.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2016-01-08 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Status: Patch Available  (was: Open)

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Attachments: HADOOP-12551.001.patch, HADOOP-12551.002.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2016-01-08 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Attachment: HADOOP-12551.003.patch

[~cnauroth] This actually is an issue with the way the try-catch. We should not 
be swallowing the storage exception in scenarios where its a StorageException 
and not FileNotFoundException. There were other places where I had used this 
paradigm, I have fixed those try-catch blocks.

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Attachments: HADOOP-12551.001.patch, HADOOP-12551.002.patch, 
> HADOOP-12551.003.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2015-12-28 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Summary: Introduce FileNotFoundException for WASB FileSystem API  (was: 
Introduce FileNotFoundException for open and getFileStatus API's in WASB)

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HADOOP-12551) Introduce FileNotFoundException for WASB FileSystem API

2015-12-28 Thread Dushyanth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dushyanth updated HADOOP-12551:
---
Attachment: HADOOP-12551.001.patch

Attaching first iteration for the JIRA.

The patch contains modification to the handling of calls made to the Azure 
Storage layer wrapped in a try catch block to handle BlobNotFound exception. 
The patch handles open(), rename(), delete(), listStatus(), setOwner(), 
setPermission() APIs.

Testing: The patch contains new tests to verify the changes made. Also changes 
have been tested against FileSystemContractLive tests for the both Block Blobs 
and Page Blobs.

> Introduce FileNotFoundException for WASB FileSystem API
> ---
>
> Key: HADOOP-12551
> URL: https://issues.apache.org/jira/browse/HADOOP-12551
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: tools
>Affects Versions: 2.7.1
>Reporter: Dushyanth
>Assignee: Dushyanth
> Attachments: HADOOP-12551.001.patch
>
>
> HADOOP-12533 introduced FileNotFoundException to the read and seek API for 
> WASB. The open and getFileStatus api currently throws FileNotFoundException 
> correctly when the file does not exists when the API is called but does not 
> throw the same exception if there is another thread/process deletes the file 
> during its execution. This Jira fixes that behavior.
> This jira also re-examines other Azure storage store calls to check for 
> BlobNotFoundException in setPermission(), setOwner, rename(), delete(), 
> open(), listStatus() APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)