hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4175) Fix FSUtils.createTableDescriptor()
Date Tue, 16 Aug 2011 18:36:27 GMT

    [ https://issues.apache.org/jira/browse/HBASE-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085892#comment-13085892

stack commented on HBASE-4175:

Patch looks generally good to me.  You might fix some javadoc if you make another patch version
and add doc'ing of the new boolean return.  In future, you might add override that doesn't
take the boolean which defaults to 'false' then you would have had less code to change.  Good
stuff Ram.

> Fix FSUtils.createTableDescriptor()
> -----------------------------------
>                 Key: HBASE-4175
>                 URL: https://issues.apache.org/jira/browse/HBASE-4175
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.0
>            Reporter: Ted Yu
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4175.patch, HBASE-4175_1.patch
> Currently createTableDescriptor() doesn't return anything.
> The caller wouldn't know whether the descriptor is created or not. See exception handling:
> {code}
>    } catch(IOException ioe) {
>      LOG.info("IOException while trying to create tableInfo in HDFS", ioe);
>    }
> {code}
> We should return a boolean.
> If the table descriptor exists already, maybe we should deserialize from hdfs and compare
with htableDescriptor argument. If they differ, I am not sure what the proper action would
> Maybe we can add a boolean argument, force, to createTableDescriptor(). When force is
true, existing table descriptor would be overwritten.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message