[JBoss JIRA] Created: (JGRP-533) RpcDispatcher: thread pool to provide interruptible cluster call invocations
by Bela Ban (JIRA)
RpcDispatcher: thread pool to provide interruptible cluster call invocations
----------------------------------------------------------------------------
Key: JGRP-533
URL: http://jira.jboss.com/jira/browse/JGRP-533
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assigned To: Bela Ban
Fix For: 2.4.1 SP4, 2.5
This is to solve http://jira.jboss.com/jira/browse/JBCACHE-1103, especially in 2.4. (In 2.5, we have OOB messages that deliver credit responses).
SOLUTION:
Th idea is to have 1 additional callRemoteMethod(s) method, which takes a timeout > 0 and a boolean use_thread_pool. If the boolean is false, then we have the default behavior: send the request, then block until all responses have been received. Else, the behavor is the following:
- Create a task that is scheduled with a thread pool and as result get a Future. (The thread pool might get created per RpcDispatcher or as static member of the RpcDispatcher class, and it is configured via system props).
- Block on the Future for timeout milliseconds
- If all the responses have been received:
- Set the result in the Future and notify it, so the caller unblocks and returns
- If the timeout elapsed:
- Interrupt the task (e.g. thread blocked in FC.down() will return, and mark the GroupRequest as 'done' so further responses are ignored) and return the current results with the RpcList, unblocking the caller
The decision whether or not to use a thread pool is *per method call*, so we don't have the overhead of the thread pool for regular calls.
This is only necessary for 2.4, as we only have a single request queue, which caused JBCACHE-1103. In 2.5, this will not happen. Question is do we want to forward-port this to 2.5 as well...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 6 months
[JBoss JIRA] Created: (JBMESSAGING-974) Unable to process control connection
by Tim Fox (JIRA)
Unable to process control connection
------------------------------------
Key: JBMESSAGING-974
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-974
Project: JBoss Messaging
Issue Type: Bug
Reporter: Tim Fox
Assigned To: Ron Sigal
Fix For: 1.3.0.GA
When running messaging remote tests (ant remote-tests from tests dir).
At various points, JBoss Remoting is logging the following:
[junit] @control: Socket[addr=/127.0.0.1,port=2960,localport=58358] 17:09:54,929 ERROR [BisocketServerInvoker] Unable to process control connection: Socket closed
[junit] java.net.SocketException: Socket closed
[junit] at java.net.SocketInputStream.socketRead0(Native Method)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:129)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:182)
[junit] at java.io.FilterInputStream.read(FilterInputStream.java:66)
[junit] at org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlConnectionThread.run(BisocketServerInvoker.java:652)
This doesn't seem to cause the tests to fail, and is annoying.
I guess remoting is trying to clear up its state and failing (??)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 6 months
[JBoss JIRA] Created: (JBRULES-951) Strange NullPointerException in rule compilation with Iterator in RHS
by Alexandre Gattiker (JIRA)
Strange NullPointerException in rule compilation with Iterator in RHS
---------------------------------------------------------------------
Key: JBRULES-951
URL: http://jira.jboss.com/jira/browse/JBRULES-951
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.MR3
Environment: IBM RAD 7
Reporter: Alexandre Gattiker
Assigned To: Mark Proctor
Create a new Rules Project
In Sample.drl add "import java.util.*;" at the top, and within the consequence block of one of the two rules:
ArrayList list = new ArrayList();
for (Iterator iter = list.iterator(); iter.hasNext();)
{
}
Eclipse reports a problem:
Severity and Description Path Resource Location Creation Time Id
Error: java.lang.NullPointerException droolstest6/src/rules Sample.drl Unknown 1182938042901 228615
When executing DroolsTest I get:
java.lang.NullPointerException
at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build(JavaConsequenceBuilder.java:54)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:67)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:390)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:264)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:147)
at com.sample.DroolsTest.readRule(DroolsTest.java:54)
at com.sample.DroolsTest.main(DroolsTest.java:21)
With 4.0.0.MR2 the bug does not happen.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 6 months