vert-x3 / vertx-ignite

Apache License 2.0
35 stars 28 forks source link

Ignite cache cannot expire #95

Closed zhoudingyun closed 3 years ago

zhoudingyun commented 3 years ago

Questions Set the cache and set the expiration time. When the expiration time is exceeded, the cache expires. However, set the cache and set the expiration time. If you get the cache, the cache will not expire. This is a very serious problem. I found that the expiration policy was cleared when getting the cache. image

Version vertx-ignite 3.9.0 or laster.

zyclonite commented 3 years ago

this is a workaround https://github.com/vert-x3/vertx-ignite/issues/63 of an ignite issue IGNITE-7401

zhoudingyun commented 3 years ago

@zyclonite The problem I encountered is different from this one.

zyclonite commented 3 years ago

can you provide a reproducer for your use-case?

zhoudingyun commented 3 years ago

@zyclonite case one: Set up the cache and set the expiration time. Do not perform any operation and wait for the cache to expire. After the expiration time, the cache invalidation. no problem with case one. case two: Set the cache and set the expiration time, then get the cache, After the expiration time, the cache cannot be invalidated. case two is wrong. I found that the cache expiration strategy was changed when the cache was obtained.

image