You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Izaak Rubin (JIRA)" <ji...@apache.org> on 2008/08/18 20:53:45 UTC

[jira] Commented: (HBASE-828) HBaseAdmin.tableExists(new Text("TestTable5")) returns false when table actually exists.

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

Izaak Rubin commented on HBASE-828:
-----------------------------------

I'm trying to get a better understanding of this problem. Are you using tableExists() and createTable() before or during the first MR job? It doesn't make sense to make these calls during a MR job, since a MR job has to run on an existing table. And if these calls are being made before the first MR job, what is the MR job doing? The same questions apply for the second MR job.

Let me know a little more detail about what's going on, and I'll try to replicate the problem and come up with a fix.

I tried doing a real simple test, creating a table and testing its existence with tableExists(Text), as follows:

<code>
HBaseAdmin admin = new HBaseAdmin(conf);
admin.createTable(Bytes.toBytes("tableA"));
assertTrue(admin.tableExists(new Text("tableA")));
<code>

This worked fine, but I don't think this is what you're describing. Let me know.

> HBaseAdmin.tableExists(new Text("TestTable5")) returns false when table actually exists.
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-828
>                 URL: https://issues.apache.org/jira/browse/HBASE-828
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 0.2.0
>            Reporter: Ryan Smith
>            Priority: Minor
>             Fix For: 0.3.0
>
>
> Process:
> One the 1st MR job, i use tableExists( new Text("TestTable5")) & tableCreate to create the table.
> On the 2nd MR job, I call tableExists(new Text("TestTable5")), which returns false, then i call disableTable, deleteTable, and finally createTable.
> Workaround for now is to avoid using Text.   tableExists(byte[]) works when i tested it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.