hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-11116) Fix javac warnings caused by deprecation of APIs in TestViewFsDefaultValue
Date Fri, 11 Nov 2016 04:46:58 GMT

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

Akira Ajisaka updated HDFS-11116:
---------------------------------
    Hadoop Flags: Incompatible change,Reviewed  (was: Incompatible change)
         Summary: Fix javac warnings caused by deprecation of APIs in TestViewFsDefaultValue
 (was: Fix Jenkins warnings caused by deprecation APIs in TestViewFsDefaultValue)

> Fix javac warnings caused by deprecation of APIs in TestViewFsDefaultValue
> --------------------------------------------------------------------------
>
>                 Key: HDFS-11116
>                 URL: https://issues.apache.org/jira/browse/HDFS-11116
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-11116.001.patch, HDFS-11116.002.patch, HDFS-11116.003.patch
>
>
> There were some Jenkins warinings related with TestViewFsDefaultValue in each Jenkins
building.
> {code}
> [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsDefaultValue.java:[108,9]
[deprecation] getDefaultBlockSize() in FileSystem has been deprecated
> [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsDefaultValue.java:[123,9]
[deprecation] getDefaultReplication() in FileSystem has been deprecated
> [WARNING] /testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsDefaultValue.java:[138,43]
[deprecation] getServerDefaults() in FileSystem has been deprecated
> {code}
> We should use the method {{getDefaultBlockSize(Path)}} replace with deprecation API {{getDefaultBlockSize}}.
The same to the {{getDefaultReplication}} and {{getServerDefaults}}. The {{Path}} can be a
not-in-mountpoint path in filesystem to trigger the {{NotInMountpointException}} in test.



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

---------------------------------------------------------------------
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