Skip to content

Clustered LoaderWriter cache is not loading from SOR when a cache entry is expired #2533

@ramsai1729

Description

@ramsai1729

Looks like this happens when cache entry is present in local heap/offheap tiers

example test code snippet

baseCacheConfigurationBuilder = baseCacheConfigurationBuilder.withLoaderWriter(cacheLoaderWriterMock)
                                                                 .withExpiry(timeToLiveExpiration(Duration.ofSeconds(1)));

ConfigurableTimeSource myTimeSource = new ConfigurableTimeSource();

...

when(cacheLoaderWriterMock.load(1L)).thenReturn("The one");

assertEquals("The one", cache.get(1L));

reset(cacheLoaderWriterMock);

myTimeSource.setTime(200000);

assertEquals("The one", cache.get(1L));

verify(cacheLoaderWriterMock).load(1L);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions