Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/18633


Change subject: KUDU-2671 introduce RANGE_SPECIFIC_HASH_SCHEMA feature flag
......................................................................

KUDU-2671 introduce RANGE_SPECIFIC_HASH_SCHEMA feature flag

This patch introduces a new RANGE_SPECIFIC_HASH_SCHEMA flag for master
to signal that a Kudu cluster is able to work with tables having
range-specific hash schemas (a.k.a. custom hash schemas per range).

The rationale for introducing the flag is the following: if there were
no RANGE_SPECIFIC_HASH_SCHEMA flag and a newer client were not requiring
the server to have such a flag, the client would not get an error while
trying to perform the following operations against tablet servers
of prior versions:
  * Creating a table having a range partition with custom hash schema
  * Adding a range partition with custom hash schema to existing table
That's because the information on custom hash schemas is provided via
newly added flags in corresponding protobuf structures, and the old
server would simply ignore the fields, assuming all the ranges to be
created have table-wide hash schema.

In addition, now C++ client require that flag when creating a table
having at least one range partition with custom hash schema.  Follow-up
patches should add requirement for the RANGE_SPECIFIC_HASH_SCHEMA flag
for the following operations (those patches haven't landed yet):
  * C++ client: add a new range with custom hash schema
  * Java client: create table with range-specific hash schema(s)
  * Java client: add a new range with custom hash schema

Change-Id: I256d32003e869939e7aa581b21bbe1e77c1e3aba
---
M src/kudu/client/client-internal.cc
M src/kudu/client/client-internal.h
M src/kudu/client/client.cc
M src/kudu/client/flex_partitioning_client-test.cc
M src/kudu/master/master.proto
M src/kudu/master/master_service.cc
6 files changed, 56 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/33/18633/1
--
To view, visit http://gerrit.cloudera.org:8080/18633
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I256d32003e869939e7aa581b21bbe1e77c1e3aba
Gerrit-Change-Number: 18633
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to