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

Vladisav Jelisavcic commented on IGNITE-4173:
---------------------------------------------

Hi Evgenii, in order for the permits to be recovered after the failure of 
acquiring semaphore, there must be at least one (other than the failing) 
semaphore alive; If not, there is no one to do the recovery and the permits get 
wasted (this is exactly what happens when you initialize second semaphore after 
the first one is broken, as in your scenario). This specific test was made to 
point out a bug (which was resolved) where semaphore was not able to recover 
properly because of lazy initialization.

> IgniteSemaphore with failoverSafe enabled doesn't release permits in case 
> permits owner node left topology
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-4173
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4173
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.7
>            Reporter: Andrey Gura
>            Assignee: Vladisav Jelisavcic
>             Fix For: 2.0
>
>
> {{IgniteSemaphore}} with {{failoverSafe}} enabled doesn't release permits in 
> case permits owner node left topology.
> See reproducer in test class {{SemaphoreFailoverSafeReleasePermitsTest}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to