You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "h.code (Jira)" <ji...@apache.org> on 2019/08/21 19:39:00 UTC

[jira] [Created] (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.

h.code created SOLR-13708:
-----------------------------

             Summary: 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.
                 Key: SOLR-13708
                 URL: https://issues.apache.org/jira/browse/SOLR-13708
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrJ
    Affects Versions: 8.2, 6.6.2
            Reporter: h.code


*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{color}*,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/|http://xxxxxxxx:8983/solr/xxx_v2_01_shard7_replica1/]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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