[ https://issues.apache.org/jira/browse/SOLR-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527551#comment-16527551 ]
Amrit Sarkar commented on SOLR-12524: ------------------------------------- Thanks [~cpoerschke] for reporting; this bug was introduced via SOLR-9922; this particular line of code was removed as {{TransactionLog.snapshot()}} is deprecated; {code} recoveryInfo.positionOfStart = tlog == null ? 0 : tlog.snapshot(); {code} hence the *recoveryInfo.positionOfStart* is not getting assigned properly. I reviewed S-9922, .. and somehow missed this obvious bug. The attached patch will solve the issue by re-implementing {{snapshot()}}, via {{fos.size()}}, snapshot's implementation. Ran beasted tests, all passed. > CdcrBidirectionalTest.testBiDir() regularly fails > ------------------------------------------------- > > Key: SOLR-12524 > URL: https://issues.apache.org/jira/browse/SOLR-12524 > Project: Solr > Issue Type: Test > Reporter: Christine Poerschke > Priority: Major > Attachments: SOLR-12524.patch, SOLR-12524.patch > > > e.g. from > https://jenkins.thetaphi.de/job/Lucene-Solr-master-MacOSX/4701/consoleText > {code} > [junit4] ERROR 20.4s J0 | CdcrBidirectionalTest.testBiDir <<< > [junit4] > Throwable #1: > com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an > uncaught exception in thread: Thread[id=28371, > name=cdcr-replicator-11775-thread-1, state=RUNNABLE, > group=TGRP-CdcrBidirectionalTest] > [junit4] > at > __randomizedtesting.SeedInfo.seed([CA5584AC7009CD50:8F8E744E68278112]:0) > [junit4] > Caused by: java.lang.AssertionError > [junit4] > at > __randomizedtesting.SeedInfo.seed([CA5584AC7009CD50]:0) > [junit4] > at > org.apache.solr.update.CdcrUpdateLog$CdcrLogReader.forwardSeek(CdcrUpdateLog.java:611) > [junit4] > at > org.apache.solr.handler.CdcrReplicator.run(CdcrReplicator.java:125) > [junit4] > at > org.apache.solr.handler.CdcrReplicatorScheduler.lambda$null$0(CdcrReplicatorScheduler.java:81) > [junit4] > at > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209) > [junit4] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > [junit4] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > [junit4] > at java.lang.Thread.run(Thread.java:748) > {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