hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hamed Madani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8782) Thrift2 can not parse values when using framed transport
Date Fri, 21 Jun 2013 10:09:20 GMT

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

Hamed Madani commented on HBASE-8782:
-------------------------------------

Thank you Ted. I'm not sure what you like me to do.
 
Below is what I get *Without this patch* running thrift2 in nonblocking mode (trying to scan
"my_table" (framed transport))
{code}
org.apache.hadoop.hbase.exceptions.TableNotFoundException: Cannot find row in .META. for table:
?
                 openScanner
                            my_table

                                  @
                                   @ 
                                    row=\xFF\xBF\xBD\x01\xF0\xF1\x00\x00\xF0\x0BopenScanner\x00\x00\(..many
more)
	at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:137)
	at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:102)
	at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:857)
	at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:917)
	at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:809)
	at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:778)
	at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:245)
	at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:186)
	at org.apache.hadoop.hbase.client.HTableFactory.createHTableInterface(HTableFactory.java:39)
	at org.apache.hadoop.hbase.client.HTablePool.createHTable(HTablePool.java:270)
	at org.apache.hadoop.hbase.client.HTablePool.findOrCreateTable(HTablePool.java:200)
	at org.apache.hadoop.hbase.client.HTablePool.getTable(HTablePool.java:179)
	at org.apache.hadoop.hbase.client.HTablePool.getTable(HTablePool.java:218)
	at org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler.getTable(ThriftHBaseServiceHandler.java:127)
	at org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler.openScanner(ThriftHBaseServiceHandler.java:306)
{code}
                
> Thrift2 can not parse values when using framed transport
> --------------------------------------------------------
>
>                 Key: HBASE-8782
>                 URL: https://issues.apache.org/jira/browse/HBASE-8782
>             Project: HBase
>          Issue Type: Bug
>          Components: Thrift
>    Affects Versions: 0.95.1
>            Reporter: Hamed Madani
>         Attachments: HBASE_8782.patch
>
>
> ThriftHBaseServiceHandler.java use .array() on table names , and values (family , qualifier
in checkandDelete , etc) which resulted in incorrect values with framed transport. Replacing
.array() with getBytes() fixed this problem. I've attached the patch
> EDIT: updated the patch to cover checkAndPut(), checkAndDelete()

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