SAMZA-2076: RocksDbTableDescriptor should use Long type for TTL
authorWei Song <wsong@linkedin.com>
Thu, 17 Jan 2019 21:40:21 +0000 (13:40 -0800)
committerWei Song <wsong@linkedin.com>
Thu, 17 Jan 2019 21:40:21 +0000 (13:40 -0800)
commit193fd272c931a09305ceced18205e6c4f7c311c7
treec3dd8fac4ab026b481cab8694465a89efb574757
parent4289ca91d674fe69fa3f4ccd79dbf130b02fb6ef
SAMZA-2076: RocksDbTableDescriptor should use Long type for TTL

Samza uses millisec as config value, while in rocksDB it's defined as int32. It's currently defined as integer in RocksDbTableDescriptor, the range isn't large enough to match, and it should be of Long type.

Author: Wei Song <wsong@linkedin.com>

Reviewers: Hai Lu <halu@linkedin.com>

Closes #887 from weisong44/SAMZA-2076
samza-kv-rocksdb/src/main/java/org/apache/samza/storage/kv/descriptors/RocksDbTableDescriptor.java