You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ryan Smith (JIRA)" <ji...@apache.org> on 2008/08/13 19:22:44 UTC

[jira] Created: (HBASE-828) HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable

HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable
--------------------------------------------------------------------------------------------------------------------------

                 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
             Fix For: 0.3.0


I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

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


[jira] Updated: (HBASE-828) HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Description: 
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

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.



  was:
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

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.




> HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable
> --------------------------------------------------------------------------------------------------------------------------
>
>                 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> 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.


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

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623722#action_12623722 ] 

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

I don't think there's much more testing I can do on this, based on some advice I got from Jim Kellerman on the issue:

"you have no control on flushing stuff to disk other than shutting down HBase and restarting it. There should be no need as the caches should do the right thing. If they don't, I need to see an example."

I had a thought about your use of Text.  The internal bytes of a Text pad on a few extra '\0' characters.  So, it's important to note that the bytes returned from {new Text("TestTable5").getBytes();} are not the same as those returned from {"TestTable5".getBytes();}.  HBase doesn't do anything fancy to make these two equivalent.  So, if you pass in {new Text("TestTable5").getBytes();} to the constructor of your HTableDescriptor, using {tableExists(new Text("TestTable5"));} should work fine, but if you use Strings you'll run into problems.

Ah, and here's another thing I just discovered: the bytes for new Text("tableA") and "tableA" are the same.  So the amount of padding varies with the length of the String.  

Look into this and let me know if there's still something weird happening.

> 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.


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

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Summary: HBaseAdmin.tableExists(new Text("TestTable5")) returns false when table actually exists.  (was: HBaseAdmin.tableExists(new Text("TestTable5")) returns false )

> 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> 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.


[jira] Updated: (HBASE-828) HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Description: 
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

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.



  was:
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

Process:

One the 1st MR job, i use tableExists(Text) & tableCreate to create the table.

On the 2nd MR job, I call tableExists(Text), which returns false, then i call disableTable, deleteTable, and finally createTable.


> HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable
> --------------------------------------------------------------------------------------------------------------------------
>
>                 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> 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.

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


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

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623435#action_12623435 ] 

Ryan Smith commented on HBASE-828:
----------------------------------

Hi Izaak,

Thanks for responding.  then the trouble could be in the way im making the table.
If you could, please test creating the table using HTableDescriptor.

		log.info("creating table in HBase: tableA");
		HTableDescriptor desc = new HTableDescriptor("tableA");

		desc.addFamily(new HColumnDescriptor("label:"));
		HBaseAdmin admin = new HBaseAdmin(hbaseConf);
		if (!admin.tableExists(new Text("tableA"))) {
			try {
				admin.disableTable(desc.getName());
				admin.deleteTable(desc.getName());
			} catch (TableNotFoundException te) {
				log.info("no existing table was found to delete.");
			}
			admin.createTable(desc);
			for (HTableDescriptor table : admin.listTables()) {
				log.info("found table: " + table.getName());
			}
		}

> 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.


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

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623445#action_12623445 ] 

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

Hi Ryan,

Actually the code snippet I put in my first comment was wrong, in testing I had passed an HTableDescriptor to createTable(), not a byte[] (bad type-o on my part).  I did try running the code from your most recent comment, and that worked fine.  Was that the code you were having trouble with?  Maybe try it out again on your machine and see if it's still a problem.  Let me know if there's anything else I should try.

> 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.


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

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

       Priority: Minor  (was: Major)
    Description: 
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.



  was:
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

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.




> 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.


[jira] Updated: (HBASE-828) HBaseAdmin.tableExists(new Text("TestTable5")) returns false when the table is initially created using HBaseAdmin.createTable

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Summary: HBaseAdmin.tableExists(new Text("TestTable5")) returns false when the table is initially created using HBaseAdmin.createTable  (was: HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable)

> HBaseAdmin.tableExists(new Text("TestTable5")) returns false when the table is initially created using HBaseAdmin.createTable
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> 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.


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

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623446#action_12623446 ] 

Ryan Smith commented on HBASE-828:
----------------------------------

Izzak,
Possibly try creating the table on one run, then check for the table on a seperate run?

Thats the only other thing i can think of.  Ill test it out here again, I am testing on branch-2.0/ latest
Thanks again,
-Ryan

> 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.


[jira] Updated: (HBASE-828) HBaseAdmin.tableExists(new Text("TestTable5")) returns false

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Summary: HBaseAdmin.tableExists(new Text("TestTable5")) returns false   (was: HBaseAdmin.tableExists(new Text("TestTable5")) returns false when the table is initially created using HBaseAdmin.createTable)

> HBaseAdmin.tableExists(new Text("TestTable5")) returns false 
> -------------------------------------------------------------
>
>                 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> 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.


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

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-828.
-------------------------

    Resolution: Invalid
      Assignee:     (was: Izaak Rubin)

Marking invalid.  We've moved on from 0.2.0 and Text.

> 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
>
> Process:
> One the 1st run of the application, i use tableExists( new Text("TestTable5")) & tableCreate to create the table.
> On the 2nd run, 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.
> To test this, you have to run the program 2 times.  Once to create the table that doesnt exist, then the 2nd time to see the error.

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


[jira] Updated: (HBASE-828) HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Description: 
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.

Process:

One the 1st MR job, i use tableExists(Text) & tableCreate to create the table.

On the 2nd MR job, I call tableExists(Text), which returns false, then i call disableTable, deleteTable, and finally createTable.

  was:
I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   

Maybe someone else could verify this bug with a simple test.


> HBaseAdmin.tableExists(new Text("myTable")) returns false when the table is initially created using HBaseAdmin.createTable
> --------------------------------------------------------------------------------------------------------------------------
>
>                 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
>             Fix For: 0.3.0
>
>
> I was using HBaseAdmin to manage the creation and deletion of tables.  on 0.2.x i noticed that tableExists returns false even when the table exists.  This seems to be related to the fact that the tableitself was created using HBaseAdmin createTable.   
> Maybe someone else could verify this bug with a simple test.
> Process:
> One the 1st MR job, i use tableExists(Text) & tableCreate to create the table.
> On the 2nd MR job, I call tableExists(Text), which returns false, then i call disableTable, deleteTable, and finally createTable.

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


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

Posted by "Jim Kellerman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Kellerman updated HBASE-828:
--------------------------------

    Fix Version/s:     (was: 0.18.0)
                   0.19.0

> 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
>            Assignee: Izaak Rubin
>            Priority: Minor
>             Fix For: 0.19.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.


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

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-828:
------------------------

    Fix Version/s:     (was: 0.19.0)

Moving out of 0.19.0.

> 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
>            Assignee: Izaak Rubin
>            Priority: Minor
>
> Process:
> One the 1st run of the application, i use tableExists( new Text("TestTable5")) & tableCreate to create the table.
> On the 2nd run, 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.
> To test this, you have to run the program 2 times.  Once to create the table that doesnt exist, then the 2nd time to see the error.

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


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

Posted by "Ryan Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Smith updated HBASE-828:
-----------------------------

    Description: 
Process:

One the 1st run of the application, i use tableExists( new Text("TestTable5")) & tableCreate to create the table.

On the 2nd run, 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.

To test this, you have to run the program 2 times.  Once to create the table that doesnt exist, then the 2nd time to see the error.


  was:
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.




> 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
>            Assignee: Izaak Rubin
>            Priority: Minor
>             Fix For: 0.19.0
>
>
> Process:
> One the 1st run of the application, i use tableExists( new Text("TestTable5")) & tableCreate to create the table.
> On the 2nd run, 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.
> To test this, you have to run the program 2 times.  Once to create the table that doesnt exist, then the 2nd time to see the error.

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


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

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623487#action_12623487 ] 

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

I'll try to do that, maybe I'll experiment with flushing the data to disk between calls to tableExists().  Another thing I realized is that I'd been doing my tests for this on trunk, but I then downloaded and tested on branch 0.2 and it still worked.

> 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.


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

Posted by "Izaak Rubin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Izaak Rubin reassigned HBASE-828:
---------------------------------

    Assignee: Izaak Rubin

> 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
>            Assignee: Izaak Rubin
>            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.