[ https://issues.apache.org/jira/browse/SOLR-11293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16151405#comment-16151405 ]
Cao Manh Dat edited comment on SOLR-11293 at 9/2/17 4:29 AM: ------------------------------------------------------------- Here are my patch for fixing the problem. This revert the changes from Noble's commit and adding the fix. According to the design, every commit must be handled very carefully in TLOG replicas. But in IndexFetcher, it actually do a commit directly when {{lastestVersion==0}} (when there are new index in master) {code} solrCore.getUpdateHandler().commit(new CommitUpdateCommand(req, false)); {code} Therefore, the patch carefully handle that commit, and copy over updates in current tlog to the newTlog. [~tomasflobbe] [~noble.paul] Can you take a look at the patch? was (Author: caomanhdat): Here are my patch for fixing the problem. According to the design, every commit must be handled very carefully in TLOG replicas. But in IndexFetcher, it actually do a commit directly when {{lastestVersion==0}} (when there are new index in master) {code} solrCore.getUpdateHandler().commit(new CommitUpdateCommand(req, false)); {code} Therefore, the patch carefully handle that commit, and copy over updates in current tlog to the newTlog. > HttpPartitionTest fails often > ----------------------------- > > Key: SOLR-11293 > URL: https://issues.apache.org/jira/browse/SOLR-11293 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Noble Paul > Assignee: Noble Paul > Fix For: 7.1 > > Attachments: SOLR-11293.patch, SOLR-11293.patch > > > https://jenkins.thetaphi.de/job/Lucene-Solr-master-MacOSX/4140/testReport/org.apache.solr.cloud/HttpPartitionTest/test/ > {code} > Error Message > Doc with id=1 not found in http://127.0.0.1:60897/b/xj/collMinRf_1x3 due to: > Path not found: /id; rsp={doc=null} > Stacktrace > java.lang.AssertionError: Doc with id=1 not found in > http://127.0.0.1:60897/b/xj/collMinRf_1x3 due to: Path not found: /id; > rsp={doc=null} > at > __randomizedtesting.SeedInfo.seed([ACF841744A332569:24AC7EAEE4CF4891]:0) > at org.junit.Assert.fail(Assert.java:93) > at org.junit.Assert.assertTrue(Assert.java:43) > at > org.apache.solr.cloud.HttpPartitionTest.assertDocExists(HttpPartitionTest.java:603) > at > org.apache.solr.cloud.HttpPartitionTest.assertDocsExistInAllReplicas(HttpPartitionTest.java:558) > at > org.apache.solr.cloud.HttpPartitionTest.testMinRf(HttpPartitionTest.java:249) > at > org.apache.solr.cloud.HttpPartitionTest.test(HttpPartitionTest.java:127) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org