Unable to shutdown SmartReaderCache

Description

ZoieSystem.shutdown()
// Mark the DefaultReaderCache instance for shutdown
SmartReaderCache.shutdown()
ZoieSystem.flushEvents(Long.MAX_VALUE)
AsyncDataConsumer.flushEvents(long t)
ZoieSystem.syncWithVersion(long t, String v)
AsyncDataConsumer.syncWithVersion(long t, String v)
// First call to refresh cache which will mark the
// maintenance thread as "done"
SmartReaderCache.refreshCache(long t)
BatchedIndexDataLoader<R, D>.flushEvents(long t)
// Second time but now the maintenance thread is not live
// anymore and cachedreaderTimestamp will not be updated (eternal loop)
SmartReaderCache.refreshCache(long timeout)

Environment

None

Status

Assignee

John Wang

Reporter

Patrik Brännström

Labels

None

Components

Affects versions

3.1.0

Priority

Major
Configure