HBASE-11391 Thrift table creation will fail with default TTL with sanity checks

This commit is contained in:
Enis Soztutar 2014-06-24 17:23:42 -07:00
parent 05c1b27e6f
commit 13bad28e93
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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
}
/**