Hrishikesh Gadre created LUCENE-8009: ----------------------------------------
Summary: Support disabling Locale randomization as part of Lucene test framework Key: LUCENE-8009 URL: https://issues.apache.org/jira/browse/LUCENE-8009 Project: Lucene - Core Issue Type: Improvement Components: modules/test-framework Affects Versions: 7.1 Reporter: Hrishikesh Gadre Priority: Minor 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 -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org