Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-12862

Unit tests fail for MergeUpdateOperationTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0, 2.5.2, 2.5.3
    • Fix Version/s: 2.5.5, 2.6.0
    • Component/s: Search
    • Labels:
      None
    • Environment:
      RHEL 4, source code stored in AFS volume

      Description

      I made a copy of my 2.5.x source tree into an AFS volume. When I subsequently ran "mvn install" on the AFS path, it fails with the following report.

      Tests in error:

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

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

      Please refer to
      /afs/isis.unc.edu/depts/its/tl/tli/sakai/sakai_2-5-x/search/search-impl/impl/m2-target/surefire-reports
      for the individual test results.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch

      in particular, the
      org.sakaiproject.search.indexer.impl.test.MergeUpdateOperationTest.txt
      says:

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.994
      sec <<< FAILURE!
      testRunOnce(org.sakaiproject.search.indexer.impl.test.MergeUpdateOperationTest)
      Time elapsed: 13.867 sec <<< ERROR!
      java.io.IOException: Failed to delete
      m2-target/MergeUpdateOperationTest/localindexholder/local/index-import/2
      at org.sakaiproject.search.util.FileUtils$1.doFile(FileUtils.java:87)

      I got this error at first with a copy I copied from a local file system (the local fs copy still builds successfully). I subsequently blew that away and I get the same error with a fresh svn co of 2-5-x. Everything builds fine on a local file system, it's just the AFS copy that fails.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  dmccallum Daniel McCallum
                  Reporter:
                  alanh Alan Hoyle (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration