You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2012/11/14 04:26:13 UTC
[jira] [Created] (HDFS-4188) Add a snapshot id comparator
Tsz Wo (Nicholas), SZE created HDFS-4188:
--------------------------------------------
Summary: Add a snapshot id comparator
Key: HDFS-4188
URL: https://issues.apache.org/jira/browse/HDFS-4188
Project: Hadoop HDFS
Issue Type: Sub-task
Components: name-node
Reporter: Tsz Wo (Nicholas), SZE
Assignee: Tsz Wo (Nicholas), SZE
Priority: Minor
The Snapshot class currently has two compareTo methods. The one for comparing IDs is not implementing the Comparable interface since Java does not allow implementing the same interface twice with different generic types. It is better to remove one of the compareTo methods for avoiding confusion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HDFS-4188) Add a snapshot id comparator
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE resolved HDFS-4188.
------------------------------------------
Resolution: Fixed
Fix Version/s: Snapshot (HDFS-2802)
Hadoop Flags: Reviewed
Thanks Suresh for reviewing it.
I have committed this.
> Add a snapshot id comparator
> ----------------------------
>
> Key: HDFS-4188
> URL: https://issues.apache.org/jira/browse/HDFS-4188
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: name-node
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Priority: Minor
> Fix For: Snapshot (HDFS-2802)
>
> Attachments: h4188_20121113.patch, h4188_20121114.patch
>
>
> The Snapshot class currently has two compareTo methods. The one for comparing IDs is not implementing the Comparable interface since Java does not allow implementing the same interface twice with different generic types. It is better to remove one of the compareTo methods for avoiding confusion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira