[ 
https://issues.apache.org/jira/browse/IGNITE-23117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Lapin updated IGNITE-23117:
-------------------------------------
    Summary: Substitute systemUTC with currentTimeMillis in HybridClockImpl  
(was: Substitute FastTimestamps with currentTimeMillis in HybridClockImpl)

> Substitute systemUTC with currentTimeMillis in HybridClockImpl
> --------------------------------------------------------------
>
>                 Key: IGNITE-23117
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23117
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Alexander Lapin
>            Priority: Major
>              Labels: ignite-3
>
> h3. Motivation
> For more details please see https://issues.apache.org/jira/browse/IGNITE-23049
> h3. Definition of Done
>  * It's required to substitute current 
> org.apache.ignite.internal.hlc.HybridClockImpl#currentTime 
> {code:java}
> private static long currentTime() {
>     return systemUTC().instant().toEpochMilli() << LOGICAL_TIME_BITS_SIZE;
> }{code}
> with 
> {code:java}
> private static long currentTime() {
>     return System.currentTimeMillis() << LOGICAL_TIME_BITS_SIZE;
> }{code}
>  * And adjust mocks in HybridClockTest.
>  * And of course ensure that currentTimeMillis based implementation is stable 
> by multiple TC runs.
> h3. Implementation Notes
> The only non-trivial part here is mock adjustments in the test.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to