[ https://issues.apache.org/jira/browse/SOLR-11676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16516413#comment-16516413 ]
Steve Rowe commented on SOLR-11676: ----------------------------------- Reproducing failure for from [https://jenkins.thetaphi.de/job/Lucene-Solr-7.x-Solaris/674/]; {{git bisect}} blames commit {{de71d48}} on this issue: {noformat} Checking out Revision b4c01b0d1fa792b8f868b8572643f8df7d909e81 (refs/remotes/origin/branch_7x) [...] [junit4] Suite: org.apache.solr.client.solrj.CollectionAdminRequestRequiredParamsTest [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=CollectionAdminRequestRequiredParamsTest -Dtests.method=testCreateCollection -Dtests.seed=267028DB6018A9B0 -Dtests.slow=true -Dtests.locale=de-CH -Dtests.timezone=Europe/Dublin -Dtests.asserts=true -Dtests.file.encoding=US-ASCII [junit4] FAILURE 0.01s J0 | CollectionAdminRequestRequiredParamsTest.testCreateCollection <<< [junit4] > Throwable #1: java.lang.AssertionError: required params missing: required=[name, nrtReplicas, action, numShards, replicationFactor], params=[name, nrtReplicas, action, numShards] [junit4] > at __randomizedtesting.SeedInfo.seed([267028DB6018A9B0:D013342A54EDE631]:0) [junit4] > at org.apache.solr.client.solrj.CollectionAdminRequestRequiredParamsTest.assertContainsParams(CollectionAdminRequestRequiredParamsTest.java:214) [junit4] > at org.apache.solr.client.solrj.CollectionAdminRequestRequiredParamsTest.testCreateCollection(CollectionAdminRequestRequiredParamsTest.java:147) [junit4] > at java.lang.Thread.run(Thread.java:748) [junit4] 2> NOTE: test params are: codec=Asserting(Lucene70): {}, docValues:{}, maxPointsInLeafNode=580, maxMBSortInHeap=7.329713806131059, sim=RandomSimilarity(queryNorm=false): {}, locale=de-CH, timezone=Europe/Dublin [junit4] 2> NOTE: SunOS 5.11 amd64/Oracle Corporation 1.8.0_172 (64-bit)/cpus=3,threads=1,free=49257384,total=162983936 [...] {noformat} > nrt replicas is always 1 when not specified > ------------------------------------------- > > Key: SOLR-11676 > URL: https://issues.apache.org/jira/browse/SOLR-11676 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Varun Thacker > Assignee: Varun Thacker > Priority: Major > Fix For: master (8.0), 7.5 > > Attachments: SOLR-11676.patch, SOLR-11676.patch, SOLR-11676.patch, > SOLR-11676.patch, SOLR-11676.patch > > > I created 1 2 shard X 2 replica collection . Here's the log entry for it > {code} > 2017-11-27 06:43:47.071 INFO (qtp159259014-22) [ ] > o.a.s.h.a.CollectionsHandler Invoked Collection Action :create with params > replicationFactor=2&routerName=compositeId&collection.configName=_default&maxShardsPerNode=2&name=test_recovery&router.name=compositeId&action=CREATE&numShards=2&wt=json&_=1511764995711 > and sendToOCPQueue=true > {code} > And then when I look at the state.json file I see nrtReplicas is set to 1. > Any combination of numShards and replicationFactor without explicitly > specifying the "nrtReplicas" param puts the "nrtReplicas" as 1 instead of > using the replicationFactor value > {code} > {"test_recovery":{ > "pullReplicas":"0", > "replicationFactor":"2", > ... > "nrtReplicas":"1", > "tlogReplicas":"0", > .. > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org