HBASE-11391 Thrift table creation will fail with default TTL with sanity checks
This commit is contained in:
parent
05c1b27e6f
commit
13bad28e93
|
@ -72,7 +72,7 @@ public class ThriftUtilities {
|
|||
.setCompressionType(comp)
|
||||
.setInMemory(in.inMemory)
|
||||
.setBlockCacheEnabled(in.blockCacheEnabled)
|
||||
.setTimeToLive(in.timeToLive)
|
||||
.setTimeToLive(in.timeToLive > 0 ? in.timeToLive : Integer.MAX_VALUE)
|
||||
.setBloomFilterType(bt);
|
||||
return col;
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase<ColumnDescripto
|
|||
|
||||
this.blockCacheEnabled = false;
|
||||
|
||||
this.timeToLive = -1;
|
||||
this.timeToLive = 2147483647;
|
||||
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ public class ColumnDescriptor implements org.apache.thrift.TBase<ColumnDescripto
|
|||
|
||||
this.blockCacheEnabled = false;
|
||||
|
||||
this.timeToLive = -1;
|
||||
this.timeToLive = 2147483647;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ struct ColumnDescriptor {
|
|||
6:i32 bloomFilterVectorSize = 0,
|
||||
7:i32 bloomFilterNbHashes = 0,
|
||||
8:bool blockCacheEnabled = 0,
|
||||
9:i32 timeToLive = -1
|
||||
9:i32 timeToLive = 0x7fffffff
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue