You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/10/05 02:16:00 UTC
[jira] [Commented] (HDFS-12681) Make HdfsLocatedFileStatus a
subtype of LocatedFileStatus
[ https://issues.apache.org/jira/browse/HDFS-12681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17424262#comment-17424262 ]
Wei-Chiu Chuang commented on HDFS-12681:
----------------------------------------
For future reference, this change breaks source compatibility due to the FileStatus.flags() and FileStatus.setSnapShotEnabledFlag () added by HDFS-12455.
Affected version: Hadoop 3.0.3.
> Make HdfsLocatedFileStatus a subtype of LocatedFileStatus
> ---------------------------------------------------------
>
> Key: HDFS-12681
> URL: https://issues.apache.org/jira/browse/HDFS-12681
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Christopher Douglas
> Assignee: Christopher Douglas
> Priority: Major
> Fix For: 3.1.0
>
> Attachments: HDFS-12681.00.patch, HDFS-12681.01.patch, HDFS-12681.02.patch, HDFS-12681.03.patch, HDFS-12681.04.patch, HDFS-12681.05.patch, HDFS-12681.06.patch, HDFS-12681.07.patch, HDFS-12681.08.patch, HDFS-12681.09.patch, HDFS-12681.10.patch, HDFS-12681.11.patch, HDFS-12681.12.patch, HDFS-12681.13.patch, HDFS-12681.14.patch, HDFS-12681.15.patch, HDFS-12681.16.patch
>
>
> {{HdfsLocatedFileStatus}} is a subtype of {{HdfsFileStatus}}, but not of {{LocatedFileStatus}}. Conversion requires copying common fields and shedding unknown data. It would be cleaner and sufficient for {{HdfsFileStatus}} to extend {{LocatedFileStatus}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org