Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8009

Support disabling Locale randomization as part of Lucene test framework

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 7.1
    • None
    • modules/test-framework
    • None
    • New

    Description

      The Lucene test framework randomizes the Locale configuration to test the software in different locale settings.
      https://github.com/apache/lucene-solr/blob/e2521b2a8baabdaf43b92192588f51e042d21e97/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java#L206-L209

      While this is a very good practice from engineering perspective, it causes issues when the Lucene/Solr test framework is used with third-party components which may have issues working with a subset of locale settings. e.g. for Solr/Sentry integration (SENTRY-1475), we are using Solr test framework to test the sentry authorization plugin for Solr. For unit-testing, it uses Apache Derby. We have found multiple cases when derby fail to initialize for a locale configured by Solr test framework. This causes tests to fail and create a confusion with respect to the quality of the integration source-code. Since the Derby failures are not related to Solr/Sentry integration, we would like to avoid such nasty surprises by suppressing the locale randomization. This is similar to the way we suppress Solr SSL configuration (@SolrTestCaseJ4.SuppressSSL).

      Please refer to discussion on dev mailing list for more context,
      http://lucene.472066.n3.nabble.com/Solr-test-framework-Locale-randomization-td4359671.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            hgadre Hrishikesh Gadre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: