Re: [jgroups-users] Locks get locked forever after a cluster members leaves

Questions/problems related to using JGroups <[email protected]> Mon, 23 Oct 2017 15:31:03 +0200
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.16735.1508765477.12770.javagroups-users@lists.sourceforge.net>

On 23/10/17 15:27, Questions/problems related to using JGroups via 
javagroups-users wrote:
> 
> Met vriendelijke groet / Kind regards,
> Bram Klein Gunnewiek | Shock Media B.V.
> 
> Tel: +31 (0)546 - 714360
> Fax: +31 (0)546 - 714361
> Web:https://www.shockmedia.nl/
> 
> On 10/23/2017 03:15 PM, Questions/problems related to using JGroups wrote:
>>
>>
>> On 23/10/17 15:05, Questions/problems related to using JGroups via 
>> javagroups-users wrote:
>>
>>>> What do you mean? You must have called Lock.lock(), right? Below you 
>>>> mention that all lock() calls are changed into corresponding 
>>>> tryLock() calls, but the output you showed clearly indicate that the 
>>>> queue has a regular lock() request by 373 pending, followed by a 
>>>> tryLock() request...
>>>
>>> I need some more time to reply to your first response but this one is 
>>> easy. I *never* use a regular lock() call on the JGroups lock (I wrap 
>>> them, see example), the only calls done on the JGroups lock are 
>>> tryLock(..) calls.
>>
>> Well, why am I seeing a regular lock() request in the queue then (see 
>> the first queue element below)?
>>
>>   queue:
>>                 L(writelock/regular/instance_2_1/,40388::373)
>> TL(writelock/regular/instance_2_1/,45507::413,20000)
>>
>> The  first queued lock request is clearly a Request for a lock() , 
>> *not* a tryLock()!
> 
> I'll check this again. What my assumption whas that something had reset 
> the is_trylock flag while the lock was still in the queue but I could be 
> wrong.

That's impossible; we're talking about a Request, and 
Request.is_try_lock is (pretty much) immutable!


>> -
>> Bela Ban | http://www.jgroups.org
>>
>>
>> ------------------------------------------------------------------------------ 
>>
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> javagroups-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/javagroups-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> javagroups-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
> 

-- 
Bela Ban | http://www.jgroups.org


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users