Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-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 5EB6C18AE1 for ; Thu, 27 Aug 2015 06:14:46 +0000 (UTC) Received: (qmail 28666 invoked by uid 500); 27 Aug 2015 06:14:46 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 28632 invoked by uid 500); 27 Aug 2015 06:14:46 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 28620 invoked by uid 99); 27 Aug 2015 06:14:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2015 06:14:46 +0000 Date: Thu, 27 Aug 2015 06:14:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@gora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GORA-419) AccumuloStore.put deletes entire row when updating map/array field 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/GORA-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716145#comment-14716145 ] ASF GitHub Bot commented on GORA-419: ------------------------------------- Github user hsaputra commented on the pull request: https://github.com/apache/gora/pull/23#issuecomment-135304353 @lewismc Need to add "This closes #23" in the commit comment > AccumuloStore.put deletes entire row when updating map/array field > ------------------------------------------------------------------ > > Key: GORA-419 > URL: https://issues.apache.org/jira/browse/GORA-419 > Project: Apache Gora > Issue Type: Bug > Components: gora-accumulo > Affects Versions: 0.5, 0.6 > Environment: Gora 0.5 > Accumulo 1.5.1 > Zookeeper 3.4.6 > Hadoop 1.2.1 > Reporter: Gerhard Gossen > Assignee: Gerhard Gossen > Priority: Critical > > In {{AccumuloStore.put(k, v)}} fields of type MAP or ARRAY are cleared first before they are set to the new value. This is done in the methods {{putMap}}/{{putArray}} using a call to {{deleteByQuery(q)}}. The name for fields to be deleted is taken from the current column. However, {{deleteByQuery}} tries to translate the field names of the query to column names again, which fails with a log message like > {code} > 2015-04-13 13:43:35.084 ERROR 16733 --- [ool-46-thread-1] o.a.gora.accumulo.store.AccumuloStore : Mapping not found for field: ol > 2015-04-13 13:43:35.104 ERROR 16733 --- [ool-46-thread-1] o.a.gora.accumulo.store.AccumuloStore : Mapping not found for field: mk > 2015-04-13 13:43:35.115 ERROR 16733 --- [ool-46-thread-1] o.a.gora.accumulo.store.AccumuloStore : Mapping not found for field: mtdt > {code} > As a result, the query is not restricted to any field and the *entire row is deleted*. -- This message was sent by Atlassian JIRA (v6.3.4#6332)