[JBoss JIRA] (WFCORE-112) Long server shut-dow with unresponsive client with opened JNDI Context
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/WFCORE-112?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration commented on WFCORE-112:
------------------------------------------------
Enrique Gonzalez Martinez <egonzale(a)redhat.com> changed the Status of [bug 1139197|https://bugzilla.redhat.com/show_bug.cgi?id=1139197] from NEW to ASSIGNED
> Long server shut-dow with unresponsive client with opened JNDI Context
> ----------------------------------------------------------------------
>
> Key: WFCORE-112
> URL: https://issues.jboss.org/browse/WFCORE-112
> Project: WildFly Core
> Issue Type: Bug
> Reporter: Miroslav Novak
> Assignee: David Lloyd
> Attachments: JNDIContext.java, testcase.zip
>
>
> Description of problem:
> If client with opened JNDI context is disconnected from network, then clean shutdown (ctrl-c) of server takes 15 minutes.
> This scenario takes place, when network connections is lost between JMS clients with JNDI context and server.
> Version-Release number of selected component (if applicable):
> jboss-remoting-3.3.3.Final-redhat-1.jar
> How reproducible:
> always
> Steps to Reproduce:
> 1. Start EAP 6.3.1.CP.CR1 on first machine
> 2. Start client which creates JNDI context on second machine (use attached JNDIContext.java)
> 3. Disconnect network between client and server
> 4. Try to cleanly shutdown EAP 6.3.1.CP.CR1 server (by ctrl-c)
> Actual results:
> It takes 15 minutes for server to shutdown.
> Expected results:
> Server should shutdown almost immediately.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 5 months
[JBoss JIRA] (JGRP-1886) CENTRAL_LOCK: provide option to make a node the lock owner instead of node:thread
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1886?page=com.atlassian.jira.plugin.... ]
Bela Ban resolved JGRP-1886.
----------------------------
Resolution: Done
> CENTRAL_LOCK: provide option to make a node the lock owner instead of node:thread
> ---------------------------------------------------------------------------------
>
> Key: JGRP-1886
> URL: https://issues.jboss.org/browse/JGRP-1886
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.6
>
>
> When using distributed locks, we currently use {{Owner}} as identity that holds a lock. {{Owner}} consists of the node's address and the thread's ID.
> This has the same semantics as {{ReentrantLock}} which makes the thread which called {{Lock.lock()}} the owner.
> However, in some scenarios, this is too strong and some applications only want the current node to be the lock owner. This is needed in cases where thread T1 locks a lock but thread T2 needs to unlock it.
> This means, however, that all threads in a given node can lock or unlock the same lock.
> h4. Solution
> * Add property {{use_thread_id_for_lock_owner}} to {{CENTRAL_LOCK}} (default: false)
> * When set, {{getOwner()}} sets the thread-id to -1
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 5 months
[JBoss JIRA] (JGRP-1886) CENTRAL_LOCK: provide option to make a node the lock owner instead of node:thread
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1886?page=com.atlassian.jira.plugin.... ]
Bela Ban updated JGRP-1886:
---------------------------
Description:
When using distributed locks, we currently use {{Owner}} as identity that holds a lock. {{Owner}} consists of the node's address and the thread's ID.
This has the same semantics as {{ReentrantLock}} which makes the thread which called {{Lock.lock()}} the owner.
However, in some scenarios, this is too strong and some applications only want the current node to be the lock owner. This is needed in cases where thread T1 locks a lock but thread T2 needs to unlock it.
This means, however, that all threads in a given node can lock or unlock the same lock.
h4. Solution
* Add property {{use_thread_id_for_lock_owner}} to {{CENTRAL_LOCK}} (default: false)
* When set, {{getOwner()}} sets the thread-id to -1
was:
When using distributed locks, we currently use {{Owner}} as identity that holds a lock. {{Owner}} consists of the node's address and the thread's ID.
This has the same semantics as {{ReentrantLock}} which makes the thread which called {{Lock.lock()}} the owner.
However, in some scenarios, this is too strong and some applications only want the current node to be the lock owner. This is needed in cases where thread T1 locks a lock but thread T2 needs to unlock it.
This means, however, that all threads in a given node can lock or unlock the same lock.
h4. Solution
* Add property {{use_thread_id_for_lock_owner}} to {{CENTRAL_LOCK}} (default: false)
* When set, {{getOwner()}} sets the thread-id to 0
> CENTRAL_LOCK: provide option to make a node the lock owner instead of node:thread
> ---------------------------------------------------------------------------------
>
> Key: JGRP-1886
> URL: https://issues.jboss.org/browse/JGRP-1886
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 3.6
>
>
> When using distributed locks, we currently use {{Owner}} as identity that holds a lock. {{Owner}} consists of the node's address and the thread's ID.
> This has the same semantics as {{ReentrantLock}} which makes the thread which called {{Lock.lock()}} the owner.
> However, in some scenarios, this is too strong and some applications only want the current node to be the lock owner. This is needed in cases where thread T1 locks a lock but thread T2 needs to unlock it.
> This means, however, that all threads in a given node can lock or unlock the same lock.
> h4. Solution
> * Add property {{use_thread_id_for_lock_owner}} to {{CENTRAL_LOCK}} (default: false)
> * When set, {{getOwner()}} sets the thread-id to -1
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 5 months