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/05/17 09:56:00 UTC
[jira] [Commented] (HDFS-16027) HDFS-15245 breaks source code
compatibility between 3.3.0 and 3.3.1.
[ https://issues.apache.org/jira/browse/HDFS-16027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346031#comment-17346031 ]
Wei-Chiu Chuang commented on HDFS-16027:
----------------------------------------
[~ayushsaxena] how do you think about using default methods in the interface to deal with the potential compat problem?
> HDFS-15245 breaks source code compatibility between 3.3.0 and 3.3.1.
> ---------------------------------------------------------------------
>
> Key: HDFS-16027
> URL: https://issues.apache.org/jira/browse/HDFS-16027
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: journal-node, ui
> Affects Versions: 3.3.1
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Blocker
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Ok, this one is on me.
> JournalNodeMXBean is a Public, Evolving interface.
> But HDFS-15245 was cherrypicked to branch-3.3 which breaks source compatibility between 3.3.0 and 3.3.1 by adding the following three methods:
> {noformat}
> /**
> * Get host and port of JournalNode.
> *
> * @return colon separated host and port.
> */
> String getHostAndPort();
> /**
> * Get list of the clusters of JournalNode's journals
> * as one JournalNode may support multiple clusters.
> *
> * @return list of clusters.
> */
> List<String> getClusterIds();
> /**
> * Gets the version of Hadoop.
> *
> * @return the version of Hadoop.
> */
> String getVersion();
> {noformat}
> api checker error:
> {quote}
> Recompilation of a client program may be terminated with the message: a client class C is not abstract and does not override abstract method getClusterIds ( ) in JournalNodeMXBean.
> {quote}
--
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