Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1E7510CBE for ; Fri, 26 Jul 2013 15:41:51 +0000 (UTC) Received: (qmail 32008 invoked by uid 500); 26 Jul 2013 15:41:49 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 31953 invoked by uid 500); 26 Jul 2013 15:41:49 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 31939 invoked by uid 99); 26 Jul 2013 15:41:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 15:41:49 +0000 Date: Fri, 26 Jul 2013 15:41:48 +0000 (UTC) From: "Suneel Marthi (JIRA)" To: dev@mahout.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAHOUT-1284) DummyRecordWriter's bug with reused Writables 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/MAHOUT-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13720894#comment-13720894 ] Suneel Marthi commented on MAHOUT-1284: --------------------------------------- Thanks for the patch Maysam, will look into this and commit the same. > DummyRecordWriter's bug with reused Writables > --------------------------------------------- > > Key: MAHOUT-1284 > URL: https://issues.apache.org/jira/browse/MAHOUT-1284 > Project: Mahout > Issue Type: Bug > Affects Versions: 0.7, 0.8 > Reporter: Maysam Yabandeh > Assignee: Suneel Marthi > Priority: Minor > Labels: test > Fix For: 0.9 > > Attachments: MAHOUT-1284.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > It is a recommended practice to reuse the Writable objects. DummyRecordWriter, which is used for testing in Mahout, however keeps the same Writable instance in a map: next time that the user reuses the Writable object, the internal map of DummyRecordWriter changes as well. This makes DummyRecordWriter fail for testing the MapReduce jobs that reuse the Writables. -- 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