gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-419) putMap and putArray use column instead of field name to deleteByQuery
Date Thu, 16 Apr 2015 07:51:58 GMT

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

ASF GitHub Bot commented on GORA-419:
-------------------------------------

Github user gerhardgossen commented on the pull request:

    https://github.com/apache/gora/pull/23#issuecomment-93669368
  
    This actually seems to be a bigger problem: As no mapping for the fields is found, the
query passed to `deleteByQuery` will have no fields set. This means that **the entire row
is removed even though we just wanted to remove a single CF** :boom:. I have created a [test
case](https://github.com/gerhardgossen/gora-419) to demonstrate this. The test case is set
up for Gora 0.5, because I couldn't get Nutch working on 0.6 yet. This code in AccumuloStore
did not change between the releases, so it should still apply. Can anyone else try to reproduce
it 0.6?
    
    Is it possible to create a bugfix relase including this patch for 0.5, because Nutch does
not support 0.6 yet (see NUTCH-1946).


> putMap and putArray use column instead of field name to deleteByQuery
> ---------------------------------------------------------------------
>
>                 Key: GORA-419
>                 URL: https://issues.apache.org/jira/browse/GORA-419
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-accumulo
>    Affects Versions: 0.6
>            Reporter: Gerhard Gossen
>
> 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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message