[
https://issues.jboss.org/browse/ISPN-2717?page=com.atlassian.jira.plugin....
]
Anna Manukyan commented on ISPN-2717:
-------------------------------------
Ok, got it! I was running tests with other profile rather than the traceTests, that's
why I couldn't see the logs. Thanks a lot and sorry for inconvenience.
execute(Runnable) of DistributedExecutorService doesn't show
exception message in case of failure of Runnable
-------------------------------------------------------------------------------------------------------------
Key: ISPN-2717
URL:
https://issues.jboss.org/browse/ISPN-2717
Project: Infinispan
Issue Type: Bug
Components: Distributed Execution and Map/Reduce
Affects Versions: 5.2.0.CR2
Reporter: Anna Manukyan
Assignee: Galder ZamarreƱo
Assume, that we have a runnable which run() method throws RuntimeException.
In case if the runnable is executed using void execute(Runnable command) for
DistributedExecutorService, the execution of runnable fails - but there is no any
stacktrace printed in the logs.
So it is really hard to find, what was wrong in your Runnable.
The sample test which does this is:
{code}
public void testRunnableExecution() throws InterruptedException {
//assuming cache initialization is done
DistributedExecutorService des = new DefaultExecutorService(cache);
SampleRunnable runnable = new SampleRunnable();
des.execute(runnable);
}
static class SampleRunnable implements Runnable, Serializable {
public SampleRunnable() {
}
@Override
public void run() {
System.out.println("Running runnable");
int i = 5 / 0;
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira