Vladislav Pyatkov created IGNITE-27190:
------------------------------------------

             Summary: Clearing of idempotenc cache
                 Key: IGNITE-27190
                 URL: https://issues.apache.org/jira/browse/IGNITE-27190
             Project: Ignite
          Issue Type: Improvement
          Components: metastorage ai3
            Reporter: Vladislav Pyatkov


h3. Motivation
The idempotency cache (MetaStorageWriteHandler#idempotentCommandCache) exists 
to handle the idempotency of the invoke operation on the MG. Previously, we 
relied on the operation timeout to define the cache retention window and then 
cleaned the cache accordingly.
However, now the timeout may be unbounded when no leader is present.
If we exclude the leader-waiting period from the retention time of entries in 
the idempotency cache, the cleanup logic becomes correct.

h3. Definition of done
Data in the idempotency cache may be stored indefinitely when the MG leader is 
absent.



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

Reply via email to