Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/13201 )

Change subject: [TTL cache] add periodic scrubbing thread
......................................................................

[TTL cache] add periodic scrubbing thread

This patch adds an optional periodic scrubbing thread for the TTLCache.
If enabled, the thread invalidates expired entries, effectively evicting
them from the cache.  With this patch, the TTLCache evicts expired
entries not only during the insertion of new ones if the cache is at its
capacity, but also upon detection of an entry's expiry by the scrubbing
thread.

Added corresponding test coverage as well.

Change-Id: Ib3bbbcf6211930a5501a03d6a47f3d911118946c
Reviewed-on: http://gerrit.cloudera.org:8080/13201
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Tested-by: Alexey Serbin <aser...@cloudera.com>
---
M src/kudu/util/cache.h
M src/kudu/util/ttl_cache-test.cc
M src/kudu/util/ttl_cache.h
3 files changed, 276 insertions(+), 13 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, approved
  Alexey Serbin: Verified

--
To view, visit http://gerrit.cloudera.org:8080/13201
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3bbbcf6211930a5501a03d6a47f3d911118946c
Gerrit-Change-Number: 13201
Gerrit-PatchSet: 10
Gerrit-Owner: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <hao....@cloudera.com>
Gerrit-Reviewer: Tidy Bot (241)

Reply via email to