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

when deleteById call with _route_ is forwarded from leader to replicas, version is getting dropped @ SolrJ unmarshal and making replicas to go into recovery state.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.6.2, 8.2
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      Code :
      https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/request/JavaBinUpdateRequestCodec.java#L161

       before change :

       if (params != null)

      { Long version = (Long) params.get(UpdateRequest.VER); if (params.containsKey(ShardParams._ROUTE_)) updateRequest.deleteById(entry.getKey(), (String) params.get(ShardParams._ROUTE_)); else updateRequest.deleteById(entry.getKey(), version); }

      else

      { updateRequest.deleteById(entry.getKey()); }

       

      2019-08-09 17:05:23.025 DEBUG (qtp1690859824-23) [c:xxx_v2_01 s:shard4 r:core_node18 x:xxx_v2_01_shard4_replica2] o.a.s.u.p.LogUpdateProcessorFactory PRE_UPDATE delete{,id=email- XXXXXXXX -XXXXXXXX,commitWithin=-1,_route_=email- XXXXXXXX } {update.distrib=FROMLEADER&update.chain=add-unknown-fields-to-the-schema&distrib.from=http://XXXXXXXX:8983/solr/xxx_v2_01_shard4_replica3/&df=_text_&wt=javabin&version=2}

       

      After change :

       if (params != null)
      { updateRequest.deleteById(entry.getKey(), (String) params.get(ShardParams._ROUTE_), (Long) params.get(UpdateRequest.VER)); }

      else
      { updateRequest.deleteById(entry.getKey()); }

       

      2019-08-12 12:31:11.095 DEBUG (qtp1690859824-22) [c:xxxx_v2_01 s:shard7 r:core_node12 x:xxx_v2_01_shard7_replica1] o.a.s.u.SolrCmdDistributor sending update to http://xxxxxxxxxxxxxxx:8983/solr/xxx_v2_01_shard7_replica2/ retry:0 delete{{color:#ff0000}version=-1641679391125667840,id=email-XXXXX-XXXXX,indexedId=email-XXXXX-XXXXX,commitWithin=-1,route=email-XXXXX} params:update.chain=add-unknown-fields-to-the-schema&update.distrib=FROMLEADER&distrib.from=http://XXXXXXXX:8983/solr/xxx_v2_01_shard7_replica1/

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hemanth.code h.code
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: