[ 
https://issues.apache.org/jira/browse/IGNITE-27362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060962#comment-18060962
 ] 

Ivan Zlenko commented on IGNITE-27362:
--------------------------------------

The actual issue is not that CompactionCommand is not idempotent, but in 
compatibility test in meta storage we are trying to do compaction on 
metastorage disregarding existing compaction queue. This could result in the 
following error:

{code:java}
SEVERE: Unknown error while processing command [commandIndex=111, 
commandTerm=1, command=CompactionCommandImpl [compactionRevision=82, 
initiatorTime=HybridTimestamp [physical=2025-12-12 05:54:46:493 +0000, 
logical=0, composite=115705045745205248], safeTime=HybridTimestamp 
[physical=2025-12-12 05:54:46:493 +0000, logical=2, 
composite=115705045745205250]]]
java.lang.AssertionError: Compaction revision should be less than the current: 
[compaction=82, current=82]
{code}


> Make CompactionCommand idempotent
> ---------------------------------
>
>                 Key: IGNITE-27362
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27362
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Zlenko
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{sendWithRetry}} can duplicate any raft command, which means that all of 
> them have to be idempotent. But this is not the case for 
> {{{}CompactionCommand{}}}, it expects {{compactionRevision}} to always grow. 
> We must fix that



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

Reply via email to