You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Alfonso Nishikawa (JIRA)" <ji...@apache.org> on 2017/05/28 18:02:04 UTC

[jira] [Resolved] (GORA-394) Erroneous 'Error: KeyClass in gora-hbase-mapping is not the same as the one in the databean.' log when reading HBase mapping

     [ https://issues.apache.org/jira/browse/GORA-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alfonso Nishikawa resolved GORA-394.
------------------------------------
    Resolution: Fixed

> Erroneous 'Error: KeyClass in gora-hbase-mapping is not the same as the one in the databean.' log when reading HBase mapping
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GORA-394
>                 URL: https://issues.apache.org/jira/browse/GORA-394
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-hbase
>    Affects Versions: 0.4, 0.5, 0.6, 0.7, 0.6.1
>            Reporter: Alfonso Nishikawa
>            Assignee: Nishadi Kirielle
>            Priority: Trivial
>              Labels: logging, mapping
>             Fix For: 0.8
>
>
> When reading the {{<class>}} mapping in gora-hbase in [HBaseStore|https://github.com/apache/gora/blob/master/gora-hbase/src/main/java/org/apache/gora/hbase/store/HBaseStore.java#L756], it keeps iterating all {{<class>}} tags until finds the one for the datastore generic parameters (key and value matches).
> For that, [this {{else}} block|https://github.com/apache/gora/blob/master/gora-hbase/src/main/java/org/apache/gora/hbase/store/HBaseStore.java#L790] is erroneous because we expect the {{if}} to be true only once and false serveral times, depending the number of entities defined in the mapping file.
> The error log "KeyClass in gora-hbase-mapping is not the same as the one in the databean." must only be shown after finishing traversing all {{<class>}} elements and finding no match.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)