You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'am using spring boot data redis 2.2.4Release with lettuce 5.2.1 and faced some strange behaviour.
When im persisting some expiring entities (changing ttl from positive to -1), there is still (after :phantom expiring hits) meta information deleting, dropping indexes and so on.
Reproduction
Save an entity with any field @Indexed and @TimeToLive field > 0
Spring data creates :phantom entity with TTL(base ttl + some seconds), :idx and some SET meta entries (for indexing)
Get our entity, change @TimeToLive field to -1 (no expiry), save via repository interface method
:phantom copy expiry TTL is not changed, and still counting down
After :phantom expire hits, spring expiry event published, :idx and meta set is deleted from space
Expected behaviour:
When entity updated with @TimeToLive field changed from expiry (>0) to no_expire (-1) - :phantom entity is removed or event incoming from :phantom expire not doing anything
The text was updated successfully, but these errors were encountered:
This commit makes sure to clean up resources when a previously expiring entity is persisted by setting the time to live to zero or negative.
In case a phantom copy exists for the changed entity, it is removed to free space on the server and prevent expiration events from being sent.
See #1955
Original Pull Request: #1961
# Conflicts:
# src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java
This commit makes sure to clean up resources when a previously expiring entity is persisted by setting the time to live to zero or negative.
In case a phantom copy exists for the changed entity, it is removed to free space on the server and prevent expiration events from being sent.
See #1955
Original Pull Request: #1961
Hi,
I'am using spring boot data redis 2.2.4Release with lettuce 5.2.1 and faced some strange behaviour.
When im persisting some expiring entities (changing ttl from positive to -1), there is still (after :phantom expiring hits) meta information deleting, dropping indexes and so on.
Reproduction
@Indexed
and@TimeToLive
field > 0@TimeToLive
field to -1 (no expiry), save via repository interface methodExpected behaviour:
When entity updated with
@TimeToLive
field changed from expiry (>0) to no_expire (-1) - :phantom entity is removed or event incoming from :phantom expire not doing anythingThe text was updated successfully, but these errors were encountered: