HBASE-19717 IntegrationTestDDLMasterFailover is using outdated values for DataBlockEncoding addendum

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Sergey Soldatov 2018-01-08 09:38:57 -08:00 committed by tedyu
parent c5277d5f88
commit 5c2161e390
1 changed files with 3 additions and 2 deletions

View File

@ -698,8 +698,9 @@ public class IntegrationTestDDLMasterFailover extends IntegrationTestBase {
try { try {
TableName tableName = selected.getTableName(); TableName tableName = selected.getTableName();
// possible DataBlockEncoding ids // possible DataBlockEncoding ids
int[] possibleIds = {0, 2, 3, 4, 7}; DataBlockEncoding[] possibleIds = {DataBlockEncoding.NONE, DataBlockEncoding.PREFIX,
short id = (short) possibleIds[RandomUtils.nextInt(0, possibleIds.length)]; DataBlockEncoding.DIFF, DataBlockEncoding.FAST_DIFF, DataBlockEncoding.ROW_INDEX_V1};
short id = possibleIds[RandomUtils.nextInt(0, possibleIds.length)].getId();
LOG.info("Altering encoding of column family: " + columnDesc + " to: " + id + LOG.info("Altering encoding of column family: " + columnDesc + " to: " + id +
" in table: " + tableName); " in table: " + tableName);