You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2006/04/23 02:04:05 UTC
[jira] Created: (HADOOP-161) dfs blocks define equal, but not
hashcode
dfs blocks define equal, but not hashcode
-----------------------------------------
Key: HADOOP-161
URL: http://issues.apache.org/jira/browse/HADOOP-161
Project: Hadoop
Type: Bug
Components: dfs
Versions: 0.1.1
Reporter: Owen O'Malley
Assigned to: Sameer Paranjpye
Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (HADOOP-161) dfs blocks define equal, but not
hashcode
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-161?page=all ]
Doug Cutting closed HADOOP-161:
-------------------------------
> dfs blocks define equal, but not hashcode
> -----------------------------------------
>
> Key: HADOOP-161
> URL: http://issues.apache.org/jira/browse/HADOOP-161
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1.1
> Reporter: Owen O'Malley
> Assignee: Milind Bhandarkar
> Fix For: 0.3.0
> Attachments: hadoop-161-correct.patch, hadoop-161.patch
>
> Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HADOOP-161) dfs blocks define equal, but not
hashcode
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-161?page=all ]
Doug Cutting updated HADOOP-161:
--------------------------------
Fix Version: 0.3
> dfs blocks define equal, but not hashcode
> -----------------------------------------
>
> Key: HADOOP-161
> URL: http://issues.apache.org/jira/browse/HADOOP-161
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1.1
> Reporter: Owen O'Malley
> Assignee: Milind Bhandarkar
> Fix For: 0.3
> Attachments: hadoop-161-correct.patch, hadoop-161.patch
>
> Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HADOOP-161) dfs blocks define equal, but not
hashcode
Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-161?page=all ]
Milind Bhandarkar updated HADOOP-161:
-------------------------------------
Attachment: hadoop-161.patch
Added a hashCode method to Block. The hash algorithm is from "Effective Java" by Joshua Bloch.
> dfs blocks define equal, but not hashcode
> -----------------------------------------
>
> Key: HADOOP-161
> URL: http://issues.apache.org/jira/browse/HADOOP-161
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1.1
> Reporter: Owen O'Malley
> Assignee: Sameer Paranjpye
> Attachments: hadoop-161.patch
>
> Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HADOOP-161) dfs blocks define equal, but not
hashcode
Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-161?page=all ]
Milind Bhandarkar updated HADOOP-161:
-------------------------------------
Attachment: hadoop-161-correct.patch
Please disregard the last patch. Since equals compares blockIds only, hashCode should also consider only blockIds. Correct patch is attached here.
> dfs blocks define equal, but not hashcode
> -----------------------------------------
>
> Key: HADOOP-161
> URL: http://issues.apache.org/jira/browse/HADOOP-161
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1.1
> Reporter: Owen O'Malley
> Assignee: Sameer Paranjpye
> Attachments: hadoop-161-correct.patch, hadoop-161.patch
>
> Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (HADOOP-161) dfs blocks define equal, but not
hashcode
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-161?page=all ]
Doug Cutting resolved HADOOP-161:
---------------------------------
Resolution: Fixed
Assign To: Milind Bhandarkar (was: Sameer Paranjpye)
I just committed this. Thanks, Milind!
> dfs blocks define equal, but not hashcode
> -----------------------------------------
>
> Key: HADOOP-161
> URL: http://issues.apache.org/jira/browse/HADOOP-161
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.1.1
> Reporter: Owen O'Malley
> Assignee: Milind Bhandarkar
> Attachments: hadoop-161-correct.patch, hadoop-161.patch
>
> Findbugs reports that dfs.Block defines equals but not hashcode, which is problematic if it is ever put into a hash table.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira