Skip to content

Commit

Permalink
HBASE-24364 [Chaos Monkey] Invalid data block encoding in ChangeEncod…
Browse files Browse the repository at this point in the history
…ingAction (apache#1707)

Signed-off-by: Jan Hentschel <janh@apache.org>
  • Loading branch information
mymeiyi authored and clarax committed Nov 15, 2020
1 parent f7e79d6 commit 40cbb53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ChangeEncodingAction(TableName tableName) {
public void perform() throws IOException {
getLogger().debug("Performing action: Changing encodings on " + tableName);
// possible DataBlockEncoding id's
final int[] possibleIds = {0, 2, 3, 4, 6};
final int[] possibleIds = {0, 2, 3, 4, 7};

modifyAllTableColumns(tableName, (columnName, columnBuilder) -> {
short id = (short) possibleIds[random.nextInt(possibleIds.length)];
Expand Down

0 comments on commit 40cbb53

Please sign in to comment.