You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Amrit Sarkar (JIRA)" <ji...@apache.org> on 2018/06/29 13:13:00 UTC

[jira] [Issue Comment Deleted] (SOLR-12524) CdcrBidirectionalTest.testBiDir() regularly fails

     [ https://issues.apache.org/jira/browse/SOLR-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amrit Sarkar updated SOLR-12524:
--------------------------------
    Comment: was deleted

(was: 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
>
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org