When there are more than 2 nodes, the hotCache is never updated when using the Set() method. Added a test which triggers the bug (you can test it by removing the accompanying fix done in groupcache.go).
However, it does look to me like the hotCache param in the Set method is misleading: the hot caches are used even if the provided arg is false, which would then yield out-of-date values to the other nodes 🤔
When there are more than 2 nodes, the
hotCache
is never updated when using theSet()
method. Added a test which triggers the bug (you can test it by removing the accompanying fix done in groupcache.go).However, it does look to me like the
hotCache
param in the Set method is misleading: the hot caches are used even if the provided arg isfalse
, which would then yield out-of-date values to the other nodes 🤔