commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Blinov (JIRA)" <>
Subject [jira] [Created] (JEXL-206) testCancelLoopWait() test hangs sporadically?
Date Tue, 12 Jul 2016 09:02:20 GMT
Dmitri Blinov created JEXL-206:

             Summary: testCancelLoopWait() test hangs sporadically?
                 Key: JEXL-206
             Project: Commons JEXL
          Issue Type: Bug
    Affects Versions: 3.0
            Reporter: Dmitri Blinov

I'm struggling with strange behaviour of the building process, it seems that time after time
the process hangs somewhere in the middle of the tests stage. First I thought it was somehow
related to memory problems so I changed fork mode of the test plugin by adding           
         <forkMode>pertest</forkMode> to maven-surefire-plugin configuration.
But that helped for a couple of times to cleanly build jexl and run all tests successfully.
The other times it simply hanged on test stage. I have managed to detect that it is the testCancelLoopWait()
test that hangs. It writes to the console the message 
WARNING: org.apache.commons.jexl3.ScriptCallableTest.testCancelLoopWait@1:20 execution cancelled

 and hangs with its stack trace as follows:

   - locked org.apache.commons.jexl3.internal.Script$Callable@18399f62

The problem started manifesting itself right after I had added
(see JEXL-204) but as I understand this test script is completely unrelated to
so I think it's  merely a conicidence. I could not write anything in ScriptInterruptableTest
and screw up ScriptCallableTest, right?

PS. I have managed to catch this exactly behavior after removing
completely and making clean build, so I'm 100% sure there is something wrong with the original
code, may be race condition or something.

This message was sent by Atlassian JIRA

View raw message