Hi, I didnt apply SOLR-4460, I use Solr 5.1.0 and I can see same issue in
log when it comes to gettingstarted example:
no frame of reference to tell if we've missed updates, so that warn is
execused.

Issue now is getting sporadic answers for numFound when doing a plain
select, seem like its quering one shard only each time.

creating the collection:
/solr/admin/collections?action=CREATE&name=txs&numShards=2&replicationFactor=2

here are the two responses, one time numFound is 29 another is 28:

  "response": {
    "numFound": 29,
    "start": 0,
    "maxScore": 1,
    "docs": []
  },
  "debug": {
    "track": {
      "rid": "-txs_shard1_replica2-1435005201041-5",
      "EXECUTE_QUERY": {
        "
https://host1:9232/solr/txs_shard1_replica1/|https://host2:9232/solr/txs_shard1_replica2/":
{
          "QTime": "0",
          "ElapsedTime": "7",
          "RequestPurpose": "GET_TOP_IDS",
          "NumFound": "1",
          "Response":
"{responseHeader={status=0,QTime=0,params={df=transactionId,distrib=false,preferLocalShards=false,debug=[false,
timing, track],fl=[transactionId,
score],shards.purpose=4,start=0,fsv=true,shard.url=
https://host1:9232/solr/txs_shard1_replica1/|https://host2:9232/solr/txs_shard1_replica2/,rows=0,rid=-txs_shard1_replica2-1435005201041-5,version=2,q=*:*,requestPurpose=GET_TOP_IDS,NOW=1435005201041,isShard=true,wt=javabin,debugQuery=false,_=1435005200744}
},response={numFound=1,start=0,maxScore=1.0,docs=[]},sort_values={},debug={timing={time=0.0,prepare={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}},process={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}}}}}"
        },
        "
https://host3:9232/solr/txs_shard2_replica1/|https://host4:9232/solr/txs_shard2_replica2/":
{
          "QTime": "1",
          "ElapsedTime": "10",
          "RequestPurpose": "GET_TOP_IDS",
          "NumFound": "28",
          "Response":
"{responseHeader={status=0,QTime=1,params={df=transactionId,distrib=false,preferLocalShards=false,debug=[false,
timing, track],fl=[transactionId,
score],shards.purpose=4,start=0,fsv=true,shard.url=
https://host3:9232/solr/txs_shard2_replica1/|https://host4:9232/solr/txs_shard2_replica2/,rows=0,rid=-txs_shard1_replica2-1435005201041-5,version=2,q=*:*,requestPurpose=GET_TOP_IDS,NOW=1435005201041,isShard=true,wt=javabin,debugQuery=false,_=1435005200744}
},response={numFound=28,start=0,maxScore=1.0,docs=[]},sort_values={},debug={timing={time=1.0,prepare={time=1.0,query={time=1.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}},process={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}}}}}"
        }
      }
    },


another time:

  "response": {
    "numFound": 28,
    "start": 0,
    "maxScore": 1,
    "docs": []
  },
  "debug": {
    "track": {
      "rid": "-txs_shard1_replica2-1435005267017-6",
      "EXECUTE_QUERY": {
        "
https://host1:9232/solr/txs_shard1_replica1/|https://host2:9232/solr/txs_shard1_replica2/":
{
          "QTime": "1",
          "ElapsedTime": "5",
          "RequestPurpose": "GET_TOP_IDS",
          "NumFound": "1",
          "Response":
"{responseHeader={status=0,QTime=1,params={df=transactionId,distrib=false,preferLocalShards=false,debug=[false,
timing, track],fl=[transactionId,
score],shards.purpose=4,start=0,fsv=true,shard.url=
https://host1:9232/solr/txs_shard1_replica1/|https://host2:9232/solr/txs_shard1_replica2/,rows=0,rid=-txs_shard1_replica2-1435005267017-6,version=2,q=*:*,requestPurpose=GET_TOP_IDS,NOW=1435005267017,isShard=true,wt=javabin,debugQuery=false,_=1435005266725}
},response={numFound=1,start=0,maxScore=1.0,docs=[]},sort_values={},debug={timing={time=1.0,prepare={time=1.0,query={time=1.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}},process={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}}}}}"
        },
        "
https://host3:9232/solr/txs_shard2_replica1/|https://host4:9232/solr/txs_shard2_replica2/":
{
          "QTime": "5",
          "ElapsedTime": "8",
          "RequestPurpose": "GET_TOP_IDS",
          "NumFound": "27",
          "Response":
"{responseHeader={status=0,QTime=5,params={df=transactionId,distrib=false,preferLocalShards=false,debug=[false,
timing, track],fl=[transactionId,
score],shards.purpose=4,start=0,fsv=true,shard.url=
https://host3:9232/solr/txs_shard2_replica1/|https://host4:9232/solr/txs_shard2_replica2/,rows=0,rid=-txs_shard1_replica2-1435005267017-6,version=2,q=*:*,requestPurpose=GET_TOP_IDS,NOW=1435005267017,isShard=true,wt=javabin,debugQuery=false,_=1435005266725}
},response={numFound=27,start=0,maxScore=1.0,docs=[]},sort_values={},debug={timing={time=5.0,prepare={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}},process={time=0.0,query={time=0.0},facet={time=0.0},facet_module={time=0.0},mlt={time=0.0},highlight={time=0.0},stats={time=0.0},expand={time=0.0},debug={time=0.0}}}}}"
        }
      }
    },



On Mon, Jun 22, 2015 at 9:50 PM, Anshum Gupta <ans...@anshumgupta.net>
wrote:

> Hi,
>
> Can you provide with more context? Solr doesn't officially support the
> 'war' (Web application ARchive) any more.
>
> What version of Solr is this? What are you trying to accomplish? Also, the
> patches on SOLR-4460 are from over an year ago.
>
> On Mon, Jun 22, 2015 at 5:22 AM, Fadi Mohsen <fadi.moh...@gmail.com>
> wrote:
>
> > Create collection :
> >
> >
> >
> /solr/admin/collections?action=CREATE&name=${collectionName}&numShards=5&replicationFactor=3&maxShardsPerNode=3
> >
> > On Mon, Jun 22, 2015 at 12:56 PM, Fadi Mohsen <fadi.moh...@gmail.com>
> > wrote:
> >
> > > Hi, I managed wiring up jetty and Solr war programmatically.
> > >
> > > After seeing SOLR-4470 (issues with inter cluster/node client calls),
> we
> > > now set:
> > > HttpClientUtil.setConfigurer(new MyCustomHttpClientConfigurer());
> > > to setup clients before doing any inter node calls.
> > >
> > > also combined with:
> > > jettywebapp.setParentLoaderPriority(true)
> > > which means that application and war uses same classpath.
> > >
> > > all good so far, uploading configuration and creating collections
> works.
> > > But, when quering the collection, responses numFound vary for each
> > > response.
> > > guessing that something is preventing solr from collecting proper
> answer
> > > from collection (all shards).
> > >
> > > We see these warnings in Solr logs:
> > >
> > > INFO  qtp678433396-57 update.PeerSync [Solr_335] [] PeerSync:
> > > core=test_o_txs_shard1_replica2 url=https://host1:9232/solr START
> > > replicas=[https://host3:9232/solr/test_o_txs_shard1_replica3/]
> > > nUpdates=100
> > > INFO  qtp678433396-57 update.PeerSync [Solr_335] [] PeerSync:
> > > core=test_o_txs_shard1_replica2 url=https://host1:9232/solr DONE.  We
> > > have no versions.  sync failed.
> > > INFO  RecoveryThread-test_o_txs_shard4_replica3 cloud.RecoveryStrategy
> > > [Solr_335] [] Attempting to PeerSync from
> > > https://host2:9232/solr/test_o_txs_shard4_replica1/
> > > core=test_o_txs_shard4_replica3 - recoveringAfterStartup=true
> > > INFO  RecoveryThread-test_o_txs_shard4_replica3 update.PeerSync
> > [Solr_335]
> > > [] PeerSync: core=test_o_txs_shard4_replica3 url=
> https://host1:9232/solr
> > > START replicas=[https://host2:9232/solr/test_o_txs_shard4_replica1/]
> > > nUpdates=100
> > > WARN  RecoveryThread-test_o_txs_shard4_replica3 update.PeerSync
> > [Solr_335]
> > > [] no frame of reference to tell if we've missed updates
> > > INFO  RecoveryThread-test_o_txs_shard4_replica3 cloud.RecoveryStrategy
> > > [Solr_335] [] PeerSync Recovery was not successful - trying
> replication.
> > > core=test_o_txs_shard4_replica3
> > > INFO  RecoveryThread-test_o_txs_shard3_replica1 cloud.RecoveryStrategy
> > > [Solr_335] [] Attempting to PeerSync from
> > > https://host3:9232/solr/test_o_txs_shard3_replica2/
> > > core=test_o_txs_shard3_replica1 - recoveringAfterStartup=true
> > > INFO  RecoveryThread-test_o_txs_shard3_replica1 update.PeerSync
> > [Solr_335]
> > > [] PeerSync: core=test_o_txs_shard3_replica1 url=
> https://host1:9232/solr
> > > START replicas=[https://host3:9232/solr/test_o_txs_shard3_replica2/]
> > > nUpdates=100
> > > WARN  RecoveryThread-test_o_txs_shard3_replica1 update.PeerSync
> > [Solr_335]
> > > [] no frame of reference to tell if we've missed updates
> > > INFO  RecoveryThread-test_o_txs_shard3_replica1 cloud.RecoveryStrategy
> > > [Solr_335] [] PeerSync Recovery was not successful - trying
> replication.
> > > core=test_o_txs_shard3_replica1
> > >
> > > any hints?
> > >
> > > Regards
> > > /Fadi
> > >
> >
>
>
>
> --
> Anshum Gupta
>

Reply via email to