[ 
https://issues.apache.org/jira/browse/ACCUMULO-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840267#comment-13840267
 ] 

ASF subversion and git services commented on ACCUMULO-1968:
-----------------------------------------------------------

Commit 513f4d22c5dfe39e5dd372528edb6c2ce6c7525d in branch 
refs/heads/1.5.1-SNAPSHOT from [~ctubbsii]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=513f4d2 ]

ACCUMULO-1968 Update incorrect example documentation


> The FileDataIngest example creates MD5 hash keys, but the javadoc says it 
> creates SHA1 hash keys.
> -------------------------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-1968
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1968
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.4, 1.5.0
>            Reporter: Chris Carrino
>            Priority: Trivial
>              Labels: documentation
>             Fix For: 1.4.5, 1.5.1, 1.6.0
>
>   Original Estimate: 2m
>  Remaining Estimate: 2m
>
> In file org.apache.accumulo.examples.simple.filedata.FileDataIngest the 
> javadoc comment says "Takes a list of files and archives them into Accumulo 
> keyed on the SHA1 hashes of the files."  But the code on line 64 creates an 
> MD5 hash using MessageDigest.getInstance("MD5").
> So either the "SHA1" in javadoc should be changed to "MD5", or the "MD5" in 
> the MessageDigest.getInstance() method argument should be changed to "SHA1".



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to