[infinispan-issues] [JBoss JIRA] (ISPN-2717) execute(Runnable) of DistributedExecutorService doesn't show exception message in case of failure of Runnable

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Tue Jan 22 05:22:21 EST 2013


     [ https://issues.jboss.org/browse/ISPN-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

RH Bugzilla Integration updated ISPN-2717:
------------------------------------------

        Bugzilla Update: Perform
    Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=902711

    
> 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
>            Reporter: Anna Manukyan
>            Assignee: Vladimir Blagojevic
>
> 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


More information about the infinispan-issues mailing list