Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 902711

Summary: execute(Runnable) of DistributedExecutorService doesn't show exception message in case of failure of Runnable
Product: [JBoss] JBoss Data Grid 6 Reporter: Anna Manukyan <amanukya>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED WONTFIX QA Contact: Martin Gencur <mgencur>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: jdg-bugs, myarboro
Target Milestone: ---   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-22 09:06:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anna Manukyan 2013-01-22 10:20:25 UTC
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.

You can find the example code in related JIRA.

Comment 1 JBoss JIRA Server 2013-01-29 16:09:12 UTC
Galder ZamarreƱo <galder.zamarreno> made a comment on jira ISPN-2717

Anna, are you sure about this? If the executable is invoked locally, any throwable should be logged:
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/distexec/DefaultExecutorService.java#L1112

Even if the execution is remote, logging happens:
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/distexec/DefaultExecutorService.java#L1074

That test does not wait for the execution to finish, so it could happen that the JVM stops before it's executed the code and it's printed the exception.

Rejecting this for the moment until more proof is provided on the existence of a bug.

Comment 2 JBoss JIRA Server 2013-01-29 16:09:21 UTC
Galder ZamarreƱo <galder.zamarreno> updated the status of jira ISPN-2717 to Resolved

Comment 3 JBoss JIRA Server 2013-01-29 17:01:55 UTC
Anna Manukyan <amanukya> made a comment on jira 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.