[ 
https://issues.apache.org/jira/browse/SOLR-6228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266044#comment-16266044
 ] 

Mikhail Khludnev commented on SOLR-6228:
----------------------------------------

h3. When test pass. 
{quote}
18457 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Master's generation: 1
18462 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Master's version: 0
18462 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Slave's generation: 1
18462 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Slave's version: 0
18462 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher New index in Master. Deleting mine...

19397 INFO  (qtp254677725-59) \[    x:collection1] o.a.s.c.S.Request 
[collection1]  webapp=/solr path=/replication 
params=\{qt=/replication&wt=javabin&version=2&command=indexversion} status=0 
QTime=0
19401 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Master's generation: 2
19401 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Master's version: 1511707221183
19401 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Slave's generation: 2
19401 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Slave's version: 1511707221131
19401 INFO  (indexFetcher-47-thread-1) \[    x:collection1] 
o.a.s.h.IndexFetcher Starting replication process
19441 INFO  (qtp254677725-65) [    x:collection1] o.a.s.c.S.Request 
[collection1]  webapp=/solr path=/replication 
params=\{generation=2&qt=/replication&tlogFiles=false&wt=javabin&version=2&command=filelist}
 status=0 QTime=38
19442 INFO  (indexFetcher-47-thread-1) [    x:collection1] o.a.s.h.IndexFetcher 
Number of files in latest index in master: 10
{quote}

h3. Failed test logs
{quote}
   [junit4]   2> 2033760 INFO  (qtp323196139-22495) [    x:collection1] 
o.a.s.c.S.Request [collection1]  webapp=/solr path=/replication 
params=\{qt=/replication&wt=javabin&version=2&command=indexver
sion} status=0 QTime=0
   [junit4]   2> 2033760 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Master's generation: 1
   [junit4]   2> 2033761 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Master's version: 0
   [junit4]   2> 2033761 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Slave's generation: 1
   [junit4]   2> 2033761 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Slave's version: 0
   [junit4]   2> 2033761 INFO  (qtp323196139-22495) [    x:collection1] 
o.a.s.u.p.LogUpdateProcessorFactory [collection1]  webapp=/solr path=/update 
params=\{wt=javabin&version=2}\{add=[2000]} 0 0
   [junit4]   2> 2033761 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher New index in Master. Deleting mine...
   [junit4]   2> 2033761 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.u.DirectUpdateHandler2 start 
commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,so
ftCommit=false,prepareCommit=false}

   [junit4]   2> 2034757 INFO  (qtp323196139-22497) [    x:collection1] 
o.a.s.c.S.Request [collection1]  webapp=/solr path=/replication 
params={qt=/replication&wt=javabin&version=2&command=indexversion} status=0 
QTime=0
   [junit4]   2> 2034757 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Master's generation: 2
   [junit4]   2> 2034757 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Master's version: 1507332180815
   [junit4]   2> 2034758 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Slave's generation: 2
   [junit4]   2> 2034758 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Slave's version: 1507332180815
   [junit4]   2> 2034758 INFO  (indexFetcher-9020-thread-1) [    x:collection1] 
o.a.s.h.IndexFetcher Slave in sync with master.
   [junit4]   2> 2034780 INFO  (qtp2142078059-22517) [    x:collection1] 
o.a.s.c.S.Request [collection1]  webapp=/solr path=/select 
params={q=*:*&sort=id+desc&wt=javabin&version=2} hits=0 status=0 QTime=0
   [junit4]   2> 2034781 INFO  
(TEST-TestReplicationHandler.doTestIndexAndConfigReplication-seed#[23368D6C872259F3])
 [    ] o.a.s.h.TestReplicationHandler Waiting for 1 docs
 
{quote}

If index version is a timestamp, It seems like slave nuked its' index at the 
same moment as master commits. Thus, we can just postpone master commit until 
currentTimeMillis() has changed. WDYT? 

> TestReplicationHandler.doTestIndexAndConfigReplication failure on jenkins
> -------------------------------------------------------------------------
>
>                 Key: SOLR-6228
>                 URL: https://issues.apache.org/jira/browse/SOLR-6228
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud, Tests
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.10, 6.0
>
>         Attachments: TestReplicationHandler-beast-failure.txt
>
>
> I recently saw a failure on jenkins:
> http://jenkins.thetaphi.de/job/Lucene-Solr-4.x-Windows/4077/
> {code}
> REGRESSION:  
> org.apache.solr.handler.TestReplicationHandler.doTestIndexAndConfigReplication
> Error Message:
> expected:<0> but was:<1404646041002>
> Stack Trace:
> java.lang.AssertionError: expected:<0> but was:<1404646041002>
>         at 
> __randomizedtesting.SeedInfo.seed([7B532BE2B6B38F19:6F1B70B795B43207]:0)
>         at org.junit.Assert.fail(Assert.java:93)
>         at org.junit.Assert.failNotEquals(Assert.java:647)
>         at org.junit.Assert.assertEquals(Assert.java:128)
>         at org.junit.Assert.assertEquals(Assert.java:147)
>         at 
> org.apache.solr.handler.TestReplicationHandler.assertVersions(TestReplicationHandler.java:987)
>         at 
> org.apache.solr.handler.TestReplicationHandler.doTestIndexAndConfigReplication(TestReplicationHandler.java:559)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to