Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 410AE1089E for ; Thu, 5 Dec 2013 16:58:38 +0000 (UTC) Received: (qmail 2007 invoked by uid 500); 5 Dec 2013 16:58:37 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 1890 invoked by uid 500); 5 Dec 2013 16:58:37 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 1813 invoked by uid 99); 5 Dec 2013 16:58:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 16:58:36 +0000 Date: Thu, 5 Dec 2013 16:58:36 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1968) The FileDataIngest example creates MD5 hash keys, but the javadoc says it creates SHA1 hash keys. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840266#comment-13840266 ] ASF subversion and git services commented on ACCUMULO-1968: ----------------------------------------------------------- Commit 513f4d22c5dfe39e5dd372528edb6c2ce6c7525d in branch refs/heads/1.4.5-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)