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

Vladislav Pyatkov updated IGNITE-25476:
---------------------------------------
    Description: 
h3. Motivation
The reason for the exception below is two active actors working simultaneously.
# The first active actor starts negotiations.
# The second update negotiation lease because it has no agreement.
# And then the first actor gets the assertion error.
{noformat}
[2025-04-16T14:40:59,826][ERROR][%ijst_n_3344%lease-updater][FailureManager] 
Critical system error detected. Will be handled accordingly to configured 
handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler 
[ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, 
SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=CRITICAL_ERROR]
org.apache.ignite.internal.failure.FailureManager$StackTraceCapturingException: 
Can't publish the lease that was not negotiated [groupId=292_part_6, 
startTime=HybridTimestamp [physical=2025-04-16 11:40:59:317 +0000, 
logical=1137, composite=114347452617000049], 
agreementLeaseStartTime=HybridTimestamp [physical=2025-04-16 11:40:58:305 
+0000, logical=819, composite=114347452550677299]].
        at 
org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:163)
 [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:140)
 [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:394)
 [ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.AssertionError: Can't publish the lease that was not 
negotiated [groupId=292_part_6, startTime=HybridTimestamp [physical=2025-04-16 
11:40:59:317 +0000, logical=1137, composite=114347452617000049], 
agreementLeaseStartTime=HybridTimestamp [physical=2025-04-16 11:40:58:305 
+0000, logical=819, composite=114347452550677299]].
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.updateLeaseBatchInternal(LeaseUpdater.java:479)
 ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:391)
 ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        ... 1 more
{noformat}

h3. Definition of done
Exclude the throwing of this assertion.

  was:
h3. Motivation
{noformat}
[2025-04-16T14:40:59,826][ERROR][%ijst_n_3344%lease-updater][FailureManager] 
Critical system error detected. Will be handled accordingly to configured 
handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler 
[ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, 
SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=CRITICAL_ERROR]
org.apache.ignite.internal.failure.FailureManager$StackTraceCapturingException: 
Can't publish the lease that was not negotiated [groupId=292_part_6, 
startTime=HybridTimestamp [physical=2025-04-16 11:40:59:317 +0000, 
logical=1137, composite=114347452617000049], 
agreementLeaseStartTime=HybridTimestamp [physical=2025-04-16 11:40:58:305 
+0000, logical=819, composite=114347452550677299]].
        at 
org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:163)
 [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:140)
 [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:394)
 [ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.AssertionError: Can't publish the lease that was not 
negotiated [groupId=292_part_6, startTime=HybridTimestamp [physical=2025-04-16 
11:40:59:317 +0000, logical=1137, composite=114347452617000049], 
agreementLeaseStartTime=HybridTimestamp [physical=2025-04-16 11:40:58:305 
+0000, logical=819, composite=114347452550677299]].
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.updateLeaseBatchInternal(LeaseUpdater.java:479)
 ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        at 
org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:391)
 ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
        ... 1 more
{noformat}


> Assertion "Can't publish the lease that was not negotiated" can be thrown
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-25476
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25476
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> h3. Motivation
> The reason for the exception below is two active actors working 
> simultaneously.
> # The first active actor starts negotiations.
> # The second update negotiation lease because it has no agreement.
> # And then the first actor gets the assertion error.
> {noformat}
> [2025-04-16T14:40:59,826][ERROR][%ijst_n_3344%lease-updater][FailureManager] 
> Critical system error detected. Will be handled accordingly to configured 
> handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler 
> [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, 
> SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=CRITICAL_ERROR]
> org.apache.ignite.internal.failure.FailureManager$StackTraceCapturingException:
>  Can't publish the lease that was not negotiated [groupId=292_part_6, 
> startTime=HybridTimestamp [physical=2025-04-16 11:40:59:317 +0000, 
> logical=1137, composite=114347452617000049], 
> agreementLeaseStartTime=HybridTimestamp [physical=2025-04-16 11:40:58:305 
> +0000, logical=819, composite=114347452550677299]].
>       at 
> org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:163)
>  [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
>       at 
> org.apache.ignite.internal.failure.FailureManager.process(FailureManager.java:140)
>  [ignite-failure-handler-3.1.0-SNAPSHOT.jar:?]
>       at 
> org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:394)
>  [ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
>       at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
> Caused by: java.lang.AssertionError: Can't publish the lease that was not 
> negotiated [groupId=292_part_6, startTime=HybridTimestamp 
> [physical=2025-04-16 11:40:59:317 +0000, logical=1137, 
> composite=114347452617000049], agreementLeaseStartTime=HybridTimestamp 
> [physical=2025-04-16 11:40:58:305 +0000, logical=819, 
> composite=114347452550677299]].
>       at 
> org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.updateLeaseBatchInternal(LeaseUpdater.java:479)
>  ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
>       at 
> org.apache.ignite.internal.placementdriver.LeaseUpdater$Updater.run(LeaseUpdater.java:391)
>  ~[ignite-placement-driver-3.1.0-SNAPSHOT.jar:?]
>       ... 1 more
> {noformat}
> h3. Definition of done
> Exclude the throwing of this assertion.



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

Reply via email to