hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plamen Jeliazkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4456) Add concat to WebHDFS REST API
Date Thu, 31 Jan 2013 23:07:14 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568220#comment-13568220

Plamen Jeliazkov commented on HDFS-4456:

Alejandro, @SuppressWarnings("unchecked") is not possible because we are doing assignments
inside of a put method in a static block.

private static final Map<Enum, ClassParam<?>[]> PARAMS_DEF =
    new HashMap<Enum, Class<Param<?>>[]>();

static {
  PARAMS_DEF.put(Operation.CONCAT, new Class[]{SourcesParam.class});

I cannot add <Param<?>> to the Class array to solve the issue, nor can I add the
suppression above the static block or above the put call.

I have however been able to remove the issue by removing Generics on the classes. I will give
you both patches -- the first one will be without the removal of Generics, meaning there will
be a -1 on the javac report. The second patch will have the removal in place and fix javac
> Add concat to WebHDFS REST API
> ------------------------------
>                 Key: HDFS-4456
>                 URL: https://issues.apache.org/jira/browse/HDFS-4456
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: webhdfs
>    Affects Versions: 3.0.0, 2.0.3-alpha
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Plamen Jeliazkov
>             Fix For: 3.0.0, 2.0.3-alpha
>         Attachments: HDFS-3598.trunk.docAndHttpFS.patch, HDFS-4456.trunk.docAndHttpFS.patch,
HDFS-4456.trunk.docAndHttpFS.patch, HDFS-4456.trunk.patch, HDFS-4456.trunk.patch
> HDFS-3598 adds the concat feature to WebHDFS.  The REST API should be updated accordingly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message