HBASE-19304 KEEP_DELETED_CELLS should ignore case

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Sergey Soldatov 2017-11-21 20:39:37 +08:00 committed by Chia-Ping Tsai
parent c978f8ab23
commit 13209bce06
2 changed files with 5 additions and 1 deletions

View File

@ -45,4 +45,7 @@ public enum KeepDeletedCells {
* time remove deleted cells after the TTL.
*/
TTL;
public static KeepDeletedCells getValue(String val) {
return valueOf(val.toUpperCase());
}
}

View File

@ -898,7 +898,8 @@ public class ColumnFamilyDescriptorBuilder {
@Override
public KeepDeletedCells getKeepDeletedCells() {
return getStringOrDefault(KEEP_DELETED_CELLS_BYTES, KeepDeletedCells::valueOf, DEFAULT_KEEP_DELETED);
return getStringOrDefault(KEEP_DELETED_CELLS_BYTES,
KeepDeletedCells::getValue, DEFAULT_KEEP_DELETED);
}
/**