You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Kyle R Stehbens (Jira)" <ji...@apache.org> on 2019/09/11 06:18:00 UTC

[jira] [Created] (HBASE-23016) Thrift2 API createTable API fails when passing split keys or table attributes

Kyle R Stehbens created HBASE-23016:
---------------------------------------

             Summary: Thrift2 API createTable API fails when passing split keys or table attributes
                 Key: HBASE-23016
                 URL: https://issues.apache.org/jira/browse/HBASE-23016
             Project: HBase
          Issue Type: Bug
          Components: Thrift
    Affects Versions: 2.2.0
            Reporter: Kyle R Stehbens


When using the Thrift2 server and API and calling createTable passing in split keys, the API call always fails.

Using HBase 2.2.0, Thrift2 (Non Blocking) server with Framed, Compact protocol.

Client: generated from hbase.thrift 2 using "netcore" for .Net core api.

To reproduce, create a new table with the Thrift2 client passing in an array of split keys to pre-split the table, on the server side. The call will fail saying duplicate split keys have been passed to the API call, however the duplicate keys it quotes look like parts of the binary API function call.

It looks like the deserialization of the thrift API call is broken when passing split keys and parts of the thrift2 API call overflow into the keys parameters.

This also seems to be a similar issue when passing in the Attributes on the HTable descriptor too. When passing a Dictionary of table attributes to the create table call, they seem garbled when viewing the meta data via the HBASE master web API.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)