Hoss Man created SOLR-12109:
-------------------------------

             Summary: Should randomize enable/disable on all caches in all 
tests unless explicitly required for testing
                 Key: SOLR-12109
                 URL: https://issues.apache.org/jira/browse/SOLR-12109
             Project: Solr
          Issue Type: Test
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Hoss Man


Enabling/disabling caches should not affect behavior -- just performance.

And yet, w/caches enabled by default (either implicitly or explicitly) in our 
test configs, it's easy to overlook bugs that exist because of code assumptions 
that only hold up when cahces are enabled -- SOLR-12108 & SOLR-12107 are 2 
great examples of this.

We should update all of our configs used in tests (including the techproduct 
sample configs used for "example" tests) to use sysprops to enable/disable all 
the caches (documentCache, filterCache, queyResultCache) and then make 
SolrTestCaseJ4 randomize all of those system properties independently.  Tests 
that depend on explicit state should explicitly set those properties.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to