Solr
  1. Solr
  2. SOLR-3347

deleteByQuery failing with SolrCloud without _version_ in schema.xml

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 5.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Distributed execution of deleteByQuery("*:*") depends on the existence of a field _version_ in the schema. The default schema has no comment on this field to indicate its important or relevance to SolrCloud, and no message is logged nor error status returned when there is no such field. The code in DistributedUpdateProcessor just has an if statement that never ever does any local deleting without it.

      I don't know whether the intention was that this should work or not. If someone would clue me in, I'd make a patch for schema.xml to add comments, or a patch to D-U-P to add logging. If it was supposed to work, I'm probably not qualified to make the fix to make it work.

      1. 0001-Attempt-to-repro-problem-with-del-and-SolrCloud.patch
        24 kB
        Benson Margulies
      2. solrconfig.xml
        56 kB
        Benson Margulies
      3. provision-and-start.sh
        1 kB
        Benson Margulies
      4. schema.xml
        7 kB
        Benson Margulies

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Hoss Man
              Reporter:
              Benson Margulies
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development