Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7523

Maven test fails in solr/contrib/map-reduce

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: contrib - MapReduce
    • Labels:

      Description

      Maven test fails on the following package:
      solr/contrib/map-reduce/
      (seen on solr6 trunk and solr 5.x branch)

      The underlying problem seems to be that when running maven test, the java security manager is not set. When running ant test, the security manager is set to org.apache.lucene.util.TestSecurityManager.

      The failing test is skipped while running ant test due to an assumption in org/apache/solr/hadoop/MorphlineBasicMiniMRTest.java:

      assumeTrue(
      "Currently this test can only be run without the lucene test security policy in place",
      System.getProperty("java.security.manager", "").equals(""));

      In maven, the test is not skipped and fails.

      I propose aligning the ant and maven test so they use the same security manager.

        Attachments

        1. SOLR-7523.patch
          1.0 kB
          Jonas van Vliet

          Issue Links

            Activity

              People

              • Assignee:
                sarowe Steven Rowe
                Reporter:
                jvv Jonas van Vliet
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: