You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jeremy Hinegardner (JIRA)" <ji...@apache.org> on 2011/03/08 20:20:59 UTC
[jira] Created: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
-------------------------------------------------------------------------------
Key: HBASE-3612
URL: https://issues.apache.org/jira/browse/HBASE-3612
Project: HBase
Issue Type: Bug
Components: client
Affects Versions: 0.90.1
Reporter: Jeremy Hinegardner
HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell updated HBASE-3612:
----------------------------------
Attachment: HBASE-3612.patch
Count regions while visiting. Catch the case where a table does not exist (0 regions). This is pretty cheap, a trivial change, and maybe the region count can be useful here someday.
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005583#comment-13005583 ]
Hudson commented on HBASE-3612:
-------------------------------
Integrated in HBase-TRUNK #1781 (See [https://hudson.apache.org/hudson/job/HBase-TRUNK/1781/])
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1, 0.92.0
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Fix For: 0.90.2, 0.92.0
>
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell updated HBASE-3612:
----------------------------------
Resolution: Fixed
Fix Version/s: 0.92.0
0.90.2
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
Committed to trunk and 0.90 branch
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1, 0.92.0
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Fix For: 0.90.2, 0.92.0
>
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-3612) HBaseAdmin::isTableAvailable( name
) returns true when the table does not exist
Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010978#comment-13010978 ]
Jean-Daniel Cryans commented on HBASE-3612:
-------------------------------------------
We just found the same issue with HCM.isTableEnabled and I think the fix done in the scope of this jira isn't the right one. If the table doesn't exist, we should throw TableNotFoundException instead of returning _false_.
I propose we reopen this jira, widen it's scope, do the fix that throws the Exception and add some unit tests.
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1, 0.92.0
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Fix For: 0.90.2, 0.92.0
>
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005400#comment-13005400 ]
stack commented on HBASE-3612:
------------------------------
+1
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1, 0.92.0
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell updated HBASE-3612:
----------------------------------
Affects Version/s: 0.92.0
Status: Patch Available (was: Open)
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1, 0.92.0
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
> Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HBASE-3612) HBaseAdmin::isTableAvailable( name )
returns true when the table does not exist
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell reassigned HBASE-3612:
-------------------------------------
Assignee: Andrew Purtell
> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
> Key: HBASE-3612
> URL: https://issues.apache.org/jira/browse/HBASE-3612
> Project: HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.90.1
> Reporter: Jeremy Hinegardner
> Assignee: Andrew Purtell
>
> HBaseAdmin::isTableAvailable( name ) returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira