You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2017/06/28 19:21:00 UTC

[jira] [Updated] (HADOOP-14609) NPE in AzureNativeFileSystemStore.checkContainer() if StorageException lacks an error code

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

Steve Loughran updated HADOOP-14609:
------------------------------------
    Attachment: HADOOP-14609-001.patch

Patch 001

as well as fixing the error in the stack, used the IDE to find all cases of {{ ex.getErrorCode().equals(CONSTANT)}} and had it flip the equals round. This automatically handles null exit codes as the equality test will just fail.

Testing. Azure ireland. 2h test run and timeouts started to engage.
{code}
Results :

Tests run: 524, Failures: 0, Errors: 0, Skipped: 109

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:18 h
[INFO] Finished at: 2017-06-28T20:11:46+01:00
[INFO] Final Memory: 44M/817M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project hadoop-azure: There was a timeout or other error in the fork -> [Help 1]
{code}

> NPE in AzureNativeFileSystemStore.checkContainer() if StorageException lacks an error code
> ------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-14609
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14609
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 2.9.0
>            Reporter: Steve Loughran
>         Attachments: HADOOP-14609-001.patch
>
>
> if something goes wrong in {{AzureNativeFileSystemStore.checkContainer() }} the {{StorageException}} error code is checked.
> {code}
> if (ex.getErrorCode().equals(StorageErrorCode.RESOURCE_NOT_FOUND.toString())) {
>  ...
> }
> But if there's no error code: NPE.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org