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

SolrTestCase.clearIndex should ensure IndexWriter.deleteAll is called

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              hossman Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: