[Geoserver-devel] [jira] Created: (GEOS-4462) Intermittent control-flow UserFlowControllerTest failure breaks build

Intermittent control-flow UserFlowControllerTest failure breaks build
---------------------------------------------------------------------

                 Key: GEOS-4462
                 URL: http://jira.codehaus.org/browse/GEOS-4462
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1.x
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.5.0_22
Java home: /opt/jdk1.5.0_22/jre
Default locale: en_AU, platform encoding: UTF-8
OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"
            Reporter: Ben Caradoc-Davies
            Assignee: Andrea Aime

We are seeing an intermittent build failure in control-flow UserFlowControllerTest. Threading issue?

{code}
[...]
Running org.geoserver.flow.controller.UserFlowControllerTest
Thread[Thread-6,5,main] calling requestIncoming
Thread[Thread-6,5,main] waiting
Thread[Thread-6,5,main] calling requestComplete
Thread[Thread-6,5,main] done
Thread[Thread-7,5,main] calling requestIncoming
Thread[Thread-7,5,main] waiting
Thread[Thread-8,5,main] calling requestIncoming
Thread[Thread-7,5,main] calling requestComplete
Thread[Thread-7,5,main] done
Thread[Thread-8,5,main] waiting
Thread[Thread-8,5,main] calling requestComplete
Thread[Thread-8,5,main] done
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.084 sec <<< FAILURE!
Running org.geoserver.flow.config.DefaultControlFlowConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec

Results :

Failed tests:
  testConcurrentRequestsSingleUser(org.geoserver.flow.controller.UserFlowControllerTest)

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0
{code}

The surefire report:

{code}
$ cat geoserver-trunk/src/extension/control-flow/target/surefire-reports/org.geoserver.flow.controller.UserFlowControllerTest.txt
-------------------------------------------------------------------------------
Test set: org.geoserver.flow.controller.UserFlowControllerTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.084 sec <<< FAILURE!
testConcurrentRequestsSingleUser(org.geoserver.flow.controller.UserFlowControllerTest) Time elapsed: 1.077 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<PROCESSING> but was:<STARTED>
  at junit.framework.Assert.fail(Assert.java:47)
  at junit.framework.Assert.failNotEquals(Assert.java:280)
  at junit.framework.Assert.assertEquals(Assert.java:64)
  at junit.framework.Assert.assertEquals(Assert.java:71)
  at org.geoserver.flow.controller.UserFlowControllerTest.testConcurrentRequestsSingleUser(UserFlowControllerTest.java:49)
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

Ben Caradoc-Davies reopened BugGEOS-4462
Intermittent control-flow {User,Global}FlowControllerTest failures break build

Sorry, Andrea, I just hit this one again on 2.1.x. I have not seen it on 2.2.x.

Change By:

Ben Caradoc-Davies (23/May/12 9:49 PM)

Status:

Resolved Reopened

Resolution:

Fixed

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)