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 "Junping Du (JIRA)" <ji...@apache.org> on 2017/08/01 00:48:01 UTC
[jira] [Commented] (HADOOP-14683) FileStatus.compareTo binary
compat issue between 2.7 and 2.8
[ https://issues.apache.org/jira/browse/HADOOP-14683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108221#comment-16108221 ]
Junping Du commented on HADOOP-14683:
-------------------------------------
bq. Generally yes, but if we use instanceof, we need to throw some Exception explicitly, which is the same as casting without type check. I'll update javadoc to add @throws ClassCastException.
I think add javadoc should be fine given we cast blindly in other places, like: Path, SequenceFile, etc.
02 patch LGTM. I think we should fix in trunk and 3.0-beta also. CC [~andrew.wang].
> FileStatus.compareTo binary compat issue between 2.7 and 2.8
> ------------------------------------------------------------
>
> Key: HADOOP-14683
> URL: https://issues.apache.org/jira/browse/HADOOP-14683
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.8.0, 2.8.1
> Reporter: Sergey Shelukhin
> Assignee: Akira Ajisaka
> Priority: Blocker
> Attachments: HADOOP-14683-branch-2-01.patch, HADOOP-14683-branch-2-02.patch
>
>
> See HIVE-17133. Looks like the signature change is causing issues; according to [~jnp] this is a public API.
> Is it possible to add the old overload back (keeping the new one presumably) in a point release on 2.8? That way we can avoid creating yet another shim for this in Hive.
--
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