hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5359) Alter in the shell can be too quick and return before the table is altered
Date Thu, 17 Jan 2013 23:48:13 GMT

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

Matteo Bertozzi commented on HBASE-5359:
----------------------------------------

This was never backported to 0.94...

and why the other similar methods were not updated to use the new waitForPersist() or why
the ModifyTableHandler() doesn't use the same .process() instead of the executorService?
{code}
new TableAddFamilyHandler(tableName, column, this, this).process();
new TableDeleteFamilyHandler(tableName, columnName, this, this).process();
new TableModifyFamilyHandler(tableName, descriptor, this, this).process();

TableEventHandler tblHandle = new ModifyTableHandler(tableName, descriptor, this, this);
this.executorService.submit(tblHandle);
tblHandle.waitForPersist();
{code}
                
> Alter in the shell can be too quick and return before the table is altered
> --------------------------------------------------------------------------
>
>                 Key: HBASE-5359
>                 URL: https://issues.apache.org/jira/browse/HBASE-5359
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.0
>            Reporter: Jean-Daniel Cryans
>            Assignee: Nicolas Spiegelberg
>             Fix For: 0.96.0
>
>         Attachments: HBASE-5359.patch
>
>
> This seems to be a recent change in behavior but I'm still not sure where it's coming
from.
> The shell is able to call HMaster.getAlterStatus before the TableEventHandler is able
call AM.setRegionsToReopen so that the returned status shows no pending regions. It means
that the alter seems "instantaneous" although it's far from completed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message