[ https://issues.apache.org/jira/browse/SOLR-11452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198112#comment-16198112 ]
Cao Manh Dat commented on SOLR-11452: ------------------------------------- Hi [~hossman], I pushed the fix to master branch, will wait a couple of days before back-port to branch_7x. Because tlog replicas will periodically ask for new segments from the leader, so we can have some bug in the code ( introduced in 1d3137057797a367c4a29ea7ef584244cf2b8198 ) that will do the copy over old updates even when there are no new segments from the leader. The assertion will make sure that there is no copy over old updates action is triggered unless tlog replicas get new segments from the leader. > TestTlogReplica.testOnlyLeaderIndexes() failure > ----------------------------------------------- > > Key: SOLR-11452 > URL: https://issues.apache.org/jira/browse/SOLR-11452 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Steve Rowe > > Reproduces for me, from > [https://builds.apache.org/job/Lucene-Solr-NightlyTests-master/1398]: > {noformat} > Checking out Revision f0a4b2dafe13e2b372e33ce13d552f169187a44e > (refs/remotes/origin/master) > [...] > [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestTlogReplica > -Dtests.method=testOnlyLeaderIndexes -Dtests.seed=CCAC87827208491B > -Dtests.multiplier=2 -Dtests.nightly=true -Dtests.slow=true > -Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt > -Dtests.locale=el -Dtests.timezone=Australia/LHI -Dtests.asserts=true > -Dtests.file.encoding=ISO-8859-1 > [junit4] FAILURE 29.5s J2 | TestTlogReplica.testOnlyLeaderIndexes <<< > [junit4] > Throwable #1: java.lang.AssertionError: expected:<2> but > was:<5> > [junit4] > at > __randomizedtesting.SeedInfo.seed([CCAC87827208491B:D0ADFA0F07AD3788]:0) > [junit4] > at > org.apache.solr.cloud.TestTlogReplica.assertCopyOverOldUpdates(TestTlogReplica.java:909) > [junit4] > at > org.apache.solr.cloud.TestTlogReplica.testOnlyLeaderIndexes(TestTlogReplica.java:501) > [junit4] > at java.lang.Thread.run(Thread.java:748) > [...] > [junit4] 2> NOTE: test params are: codec=CheapBastard, > sim=RandomSimilarity(queryNorm=false): {}, locale=el, timezone=Australia/LHI > [junit4] 2> NOTE: Linux 3.13.0-88-generic amd64/Oracle Corporation > 1.8.0_144 (64-bit)/cpus=4,threads=1,free=137513712,total=520093696 > {noformat} -- 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