[
https://issues.apache.org/jira/browse/IGNITE-22189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17853119#comment-17853119
]
Ignite TC Bot commented on IGNITE-22189:
----------------------------------------
{panel:title=Branch: [pull/11357/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11357/head] Base: [master] : New Tests
(24)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Cache 10{color} [[tests
5|https://ci2.ignite.apache.org/viewLog.html?buildId=7902521]]
* {color:#013220}IgniteCacheTestSuite10:
GridCacheTtlManagerLoadTest.testPartitionedRemove - PASSED{color}
* {color:#013220}IgniteCacheTestSuite10:
GridCacheTtlManagerLoadTest.testReplicatedRemove - PASSED{color}
* {color:#013220}IgniteCacheTestSuite10: GridCacheTtlManagerLoadTest.testLoad -
PASSED{color}
* {color:#013220}IgniteCacheTestSuite10:
GridCacheTtlManagerLoadTest.testPartitionedTtl - PASSED{color}
* {color:#013220}IgniteCacheTestSuite10:
GridCacheTtlManagerLoadTest.testReplicatedTtl - PASSED{color}
{color:#00008b}Queries 3 (lazy=true){color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=7902594]]
* {color:#013220}IgniteBinaryCacheQueryLazyTestSuite3:
SystemViewSelfTest.testCacheViewExpiryPolicyWithInMemory - PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryLazyTestSuite3:
SystemViewSelfTest.testCacheViewExpiryPolicyWithPersist - PASSED{color}
{color:#00008b}Queries 3{color} [[tests
2|https://ci2.ignite.apache.org/viewLog.html?buildId=7904183]]
* {color:#013220}IgniteBinaryCacheQueryTestSuite3:
SystemViewSelfTest.testCacheViewExpiryPolicyWithInMemory - PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite3:
SystemViewSelfTest.testCacheViewExpiryPolicyWithPersist - PASSED{color}
{color:#00008b}Cache 13{color} [[tests
11|https://ci2.ignite.apache.org/viewLog.html?buildId=7902524]]
* {color:#013220}IgniteCacheTestSuite13:
SystemViewSelfTest.testCacheViewExpiryPolicyWithInMemory - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewSelfTest.testCacheViewExpiryPolicyWithPersist - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=null,
actual=SingletonFactory [expiryPlc=EternalExpiryPolicy [create=ETERNAL]]] -
PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=javax.cache.configuration.FactoryBuilder$SingletonFactory@927df,
actual=SingletonFactory [expiryPlc=AccessedExpiryPolicy [create=10 MINUTES,
access=10 MINUTES]]] - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=javax.cache.configuration.FactoryBuilder$SingletonFactory@83,
actual=SingletonFactory [expiryPlc=CreatedExpiryPolicy [create=100
MILLISECONDS]]] - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=javax.cache.configuration.FactoryBuilder$SingletonFactory@24,
actual=SingletonFactory [expiryPlc=ModifiedExpiryPolicy [create=5
MILLISECONDS, update=5 MILLISECONDS]]] - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=javax.cache.configuration.FactoryBuilder$SingletonFactory@db99785,
actual=SingletonFactory [expiryPlc=EternalExpiryPolicy [create=ETERNAL]]] -
PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=org.apache.ignite.internal.processors.platform.cache.expiry.PlatformExpiryPolicyFactory@a54acec,
actual=PlatformExpiryPolicyFactory [create=-1, update=0, access=-1,
expiryPlc=PlatformExpiryPolicy [create=ETERNAL, update=ZERO, access=ETERNAL]]]
- PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=org.apache.ignite.internal.processors.platform.cache.expiry.PlatformExpiryPolicyFactory@19da993b,
actual=PlatformExpiryPolicyFactory [create=0, update=1, access=-1,
expiryPlc=PlatformExpiryPolicy [create=ZERO, update=1 MILLISECONDS,
access=ETERNAL]]] - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=org.apache.ignite.internal.processors.platform.cache.expiry.PlatformExpiryPolicyFactory@2c30c81d,
actual=PlatformExpiryPolicyFactory [create=2, update=4, access=8,
expiryPlc=PlatformExpiryPolicy [create=2 MILLISECONDS, update=4 MILLISECONDS,
access=8 MILLISECONDS]]] - PASSED{color}
* {color:#013220}IgniteCacheTestSuite13:
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=org.apache.ignite.internal.processors.platform.cache.expiry.PlatformExpiryPolicyFactory@415a3f6a,
actual=PlatformExpiryPolicyFactory [create=1, update=-2, access=-1,
expiryPlc=PlatformExpiryPolicy [create=1 MILLISECONDS, access=ETERNAL]]] -
PASSED{color}
... and 0 new tests
{color:#00008b}Cache 1{color} [[tests
4|https://ci2.ignite.apache.org/viewLog.html?buildId=7902520]]
* {color:#013220}IgniteBinaryCacheTestSuite:
GridCacheTtlManagerSelfTest.testReplicatedRemove - PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
GridCacheTtlManagerSelfTest.testPartitionedRemove - PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
GridCacheTtlManagerSelfTest.testPartitionedTtl - PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
GridCacheTtlManagerSelfTest.testReplicatedTtl - PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=7902622&buildTypeId=IgniteTests24Java8_RunAll]
> Display Expiry Policy information in the system view
> ----------------------------------------------------
>
> Key: IGNITE-22189
> URL: https://issues.apache.org/jira/browse/IGNITE-22189
> Project: Ignite
> Issue Type: Improvement
> Reporter: Maksim Davydov
> Assignee: Maksim Davydov
> Priority: Minor
> Labels: ise
> Time Spent: 6h
> Remaining Estimate: 0h
>
> The {{CacheView#expiryPolicyFactory}} method returns the ExpiryPolicyFactory
> string representation, which at this point is a simple className +@ +
> hashCode in hex, that is default {{Object#toString()}} behaviour. This is not
> informative for an end user of the API.
> In addition, it is useful to have information about existing cache entries
> that are about to expire (eligible for cache expiry policy).
> {*}TODO{*}:
> * To make the {{CacheView#expiryPolicyFactory}} method return readable,
> human-oriented output, one should refactor the method or
> {{Factory<ExpiryPolicy>}} child classes to provide the cache expiry policy
> setting in readable form with policy type and ttl.
> * Within the cache view ({{{}CacheView{}}}), check the entries presence
> eligible for expiry policy. It can be done with O(logN) time complexity for
> in-memory, and O(number of partitions) for persistent mode.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)