Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1153

PersistenceSearchTest fails sometimes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.5.4
    • None
    • None
    • linux 32/64 bit, jdk 1.6

    Description

      server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java

      The test fails sometime sometimes it don't. I think it has to do with the thread handling/interruption. Look at the following CLI output of the test. I just startet it multiple times in sequence without changing anything to the code oder somewhere else. It's also not alternating sometimes it passes multiple times correct and then multiple times I get a failure.

      felix@donar cd ~/svn/apache/directory/apacheds/branches/bigbang/server-unitsvn/apache/directory/apacheds/branches/bigbang/server-unit/
      felix@donar ~/svn/apache/directory/apacheds/branches/bigbang/server-unit $ mvn clean -Dintegration -Dtest=PersistentSearchTest test
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ApacheDS Server Unit
      [INFO] task-segment: [clean, test]
      [INFO] ------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting directory /svn/apache/directory/apacheds/branches/bigbang/server-unit/target
      [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
      [INFO] Setting property: velocimacro.messages.on => 'false'.
      [INFO] Setting property: resource.loader => 'classpath'.
      [INFO] Setting property: resource.manager.logwhenfound => 'false'.
      [INFO] [remote-resources:process

      {execution: default}

      ]
      [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.commons:commons-io:1.3.2) of type: jar; constructing POM artifact instead.
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 1 source file to /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/classes
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      [INFO] Compiling 35 source files to /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/test-classes
      [INFO] [surefire:test]
      [INFO] Surefire report directory: /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.directory.server.PersistentSearchTest
      Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.331 sec

      Results :

      Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 24 seconds
      [INFO] Finished at: Wed Mar 19 15:37:15 CET 2008
      [INFO] Final Memory: 35M/345M
      [INFO] ------------------------------------------------------------------------
      felix@donar ~/svn/apache/directory/apacheds/branches/bigbang/server-unit $ mvn clean -Dintegration -Dtest=PersistentSearchTest test
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ApacheDS Server Unit
      [INFO] task-segment: [clean, test]
      [INFO] ------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting directory /svn/apache/directory/apacheds/branches/bigbang/server-unit/target
      [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
      [INFO] Setting property: velocimacro.messages.on => 'false'.
      [INFO] Setting property: resource.loader => 'classpath'.
      [INFO] Setting property: resource.manager.logwhenfound => 'false'.
      [INFO] [remote-resources:process

      {execution: default}

      ]
      [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.commons:commons-io:1.3.2) of type: jar; constructing POM artifact instead.
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 1 source file to /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/classes
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      ^[[A[INFO] Compiling 35 source files to /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/test-classes

      [INFO] [surefire:test]
      [INFO] Surefire report directory: /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.directory.server.PersistentSearchTest
      ^[[A
      Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.771 sec <<< FAILURE!

      Results :

      Failed tests:
      testPsearchAbandon(org.apache.directory.server.PersistentSearchTest)

      Tests run: 11, Failures: 1, Errors: 0, Skipped: 0

      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] There are test failures.

      Please refer to /svn/apache/directory/apacheds/branches/bigbang/server-unit/target/surefire-reports for the individual test results.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 20 seconds
      [INFO] Finished at: Wed Mar 19 15:37:45 CET 2008
      [INFO] Final Memory: 35M/345M
      [INFO] ------------------------------------------------------------------------

      ... to be continued ...

      Regards
      Felix

      Attachments

        Issue Links

          Activity

            People

              akarasulu Alex Karasulu
              felixk Felix Knecht
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: