|
Steve Ebersole I see what's the problem, but the 'trivial fix' requires a) change in o.h.cache.spi.QueryCache.put(), passing the timestamp b) acquire the timestamp in QueryCache.get() and put it into map in StandardQueryCache, and then retrieve it in put() + registering some cleanup callback in case that the DB load throws an exception. c) using SessionImplementor.getTimestamp(), which would work but it would render a new query somewhat older.
b) sounds to me like a complicated hack, though something similar (called pending puts) is used for Infinispan 2LC quite regularly. Should I try to squeeze in a) or will we rather fix it with c)?
|