You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2017/01/05 23:33:58 UTC

[jira] [Created] (SOLR-9934) SolrTestCase.clearIndex should ensure IndexWriter.deleteAll is called

Hoss Man created SOLR-9934:
------------------------------

             Summary: SolrTestCase.clearIndex should ensure IndexWriter.deleteAll is called
                 Key: SOLR-9934
                 URL: https://issues.apache.org/jira/browse/SOLR-9934
             Project: Solr
          Issue Type: Test
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Hoss Man
            Assignee: Hoss Man



Normal deleteByQuery commands are subject to version constraint checks due to the possibility of out of order updates, but DUH2 has special support (triggered by {{version=-Long.MAX_VALUE}} for use by tests to override these version constraints and do a low level {{IndexWriter.deleteAll()}} call.  A handful of tests override {{SolrTestCaseJ4.clearIndex()}} to take advantage of this (using copy/pasted impls), but given the intended purpose/usage of {{SolrTestCaseJ4.clearIndex()}}, it seems like the the base method in {{SolrTestCaseJ4}} should itself trigger this low level deletion, so tests get this behavior automatically.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org