[
https://issues.apache.org/jira/browse/HBASE-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221077#comment-13221077
]
Zhihong Yu commented on HBASE-5506:
-----------------------------------
If I comment out the exclusion Scott added, I see the following test failure:
{code}
Tests in error:
testRunThriftServer[0](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[2](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[4](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[6](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[12](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[14](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[16](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
testRunThriftServer[18](org.apache.hadoop.hbase.thrift.TestThriftServerCmdLine):
IOError(message:Cannot find row in .META.,
row=\x80\x01\x00\x01\x00\x00\x00\x0DgetRegionInfo\x00\x00\x00\x12\x0B\x00\x01\x00\x00\x00\x1AtableA,rowA,99999999999999\x00)
{code}
With the exclusion condition, the test passed:
{code}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:21.622s
{code}
I will integrate patch v3 later today if there is no objection.
> Add unit test for ThriftServerRunner.HbaseHandler.getRegionInfo()
> -----------------------------------------------------------------
>
> Key: HBASE-5506
> URL: https://issues.apache.org/jira/browse/HBASE-5506
> Project: HBase
> Issue Type: Test
> Reporter: Scott Chen
> Assignee: Scott Chen
> Priority: Minor
> Attachments: HBASE-5506.D2031.1.patch, HBASE-5506.D2031.2.patch,
> HBASE-5506.D2031.3.patch
>
>
> We observed that when with "framed transport" option.
> The thrift call ThriftServerRunner.HbaseHandler.getRegionInfo() receives
> corrupted parameter (some garbage string attached to the beginning).
> This may be a thrift bug requires further investigation.
> Add a unit test to reproduce the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira