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 d9ca212d55
commit 9b57fd09e8
1 changed files with 3 additions and 2 deletions

View File

@ -698,8 +698,9 @@ public class IntegrationTestDDLMasterFailover extends IntegrationTestBase {
try {
TableName tableName = selected.getTableName();
// possible DataBlockEncoding ids
int[] possibleIds = {0, 2, 3, 4, 7};
short id = (short) possibleIds[RandomUtils.nextInt(0, possibleIds.length)];
DataBlockEncoding[] possibleIds = {DataBlockEncoding.NONE, DataBlockEncoding.PREFIX,
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 +
" in table: " + tableName);