hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-11824) Ozone: Fix javac warnings
Date Mon, 15 May 2017 11:11:04 GMT

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

Yiqun Lin edited comment on HDFS-11824 at 5/15/17 11:10 AM:
------------------------------------------------------------

Attach the initial patch.
One note:
Method {{DefaultHttpClient#removeRequestInterceptorByClass}} hasn't existed in new APIs. The
fixed way I did is to remove the following lines since I found the Content-Length info has
already in put request.
{code}
      putRequest.setHeader(HttpHeaders.CONTENT_LENGTH, Long.toString(file
          .length()));
      httpClient.removeRequestInterceptorByClass(
          org.apache.http.protocol.RequestContent.class);
{code}


was (Author: linyiqun):
Attach the initial patch.
One note:
Method {{DefaultHttpClient#removeRequestInterceptorByClass}} hasn't existed in new APIs. The
fixed way I did is to remove the following lines since I found the Content-Length info has
already in put request.

> Ozone: Fix javac warnings
> -------------------------
>
>                 Key: HDFS-11824
>                 URL: https://issues.apache.org/jira/browse/HDFS-11824
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-11824-HDFS-7240.001.patch
>
>
> Found many javac warnings generated from ozone sources codes. Totally two types warings:
> {noformat}
> [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/client/OzoneBucket.java:[482,41]
[deprecation] DefaultHttpClient in org.apache.http.impl.client has been deprecated
> [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java:[284,52]
[deprecation] getHostText() in HostAndPort has been deprecated
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message