HBASE-11838 Enable PREFIX_TREE in integration tests

This commit is contained in:
Jimmy Xiang 2014-10-06 19:04:02 -07:00
parent da440d586e
commit 408de0fbb3
1 changed files with 3 additions and 1 deletions

View File

@ -58,10 +58,12 @@ public class ChangeEncodingAction extends Action {
LOG.debug("Performing action: Changing encodings on " + tableName);
// possible DataBlockEncoding id's
int[] possibleIds = {0, 2, 3, 4/*, 6*/};
int[] possibleIds = {0, 2, 3, 4, 6};
for (HColumnDescriptor descriptor : columnDescriptors) {
short id = (short) possibleIds[random.nextInt(possibleIds.length)];
descriptor.setDataBlockEncoding(DataBlockEncoding.getEncodingById(id));
LOG.debug("Set encoding of column family " + descriptor.getNameAsString()
+ " to: " + descriptor.getDataBlockEncoding());
}
admin.modifyTable(tableName, tableDescriptor);