You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2016/01/27 07:20:40 UTC

[jira] [Created] (GORA-465) Remove @Deprecated logic for hbase-mapping.xml

Lewis John McGibbney created GORA-465:
-----------------------------------------

             Summary: Remove @Deprecated logic for hbase-mapping.xml
                 Key: GORA-465
                 URL: https://issues.apache.org/jira/browse/GORA-465
             Project: Apache Gora
          Issue Type: Test
          Components: gora-hbase
    Affects Versions: 0.6.1
            Reporter: Lewis John McGibbney
            Priority: Trivial
             Fix For: 0.7


We have some useless checking and log statements in HBaseStore which relate to a very old hbase-mapping.xml.
These should just be removed.
{code}
  @Deprecated
  private static final String DEPRECATED_MAPPING_FILE = "hbase-mapping.xml";
...
      try {
        mapping = readMapping(getConf().get(PARSE_MAPPING_FILE_KEY, DEPRECATED_MAPPING_FILE));
        LOG.warn("{} is deprecated, please rename the file to {}", DEPRECATED_MAPPING_FILE, DEFAULT_MAPPING_FILE);
      } catch (FileNotFoundException ex1) {
        LOG.error(ex1.getMessage(), ex1);
        //throw (ex1); //throw the original exception
      } catch (Exception ex1) {
        LOG.warn("{} is deprecated, please rename the file to {}", DEPRECATED_MAPPING_FILE, DEFAULT_MAPPING_FILE);
        throw new RuntimeException(ex1);
      } 
{code}
etc



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