[
https://issues.apache.org/jira/browse/SOLR-12065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417843#comment-16417843
]
Rohit commented on SOLR-12065:
------------------------------
Changed flow in RestoreCmd.java and improved the backup and restore test case:
# Post restoration index new docs to the restored collection
# Verify that the new documents are searchable and the original doc count +
newly indexed doc count matches are correct
Additional steps performed to test and
verify:[^12605UTLogs.txt.zip][^logs_and_metrics.zip]
1.
[http://localhost:8983/solr/admin/collections?action=CREATE&name=test_backup&numShards=2&nrtReplicas=2&replicationFactor=2&maxShardsPerNode=2]
2. curl http://127.0.0.1:8983/solr/test_backup/update?commit=true -H
'Content-type:application/json' -d '[ \{"id" : "1"}]'
3.
[http://localhost:8983/solr/admin/collections?action=BACKUP&name=test_backup&collection=test_backup&location=/Users/Rohit/Desktop/backup]
4.
[http://localhost:8983/solr/admin/collections?action=RESTORE&name=test_backup&location=/Users/Rohit/Desktop/backup&collection=test_restore]
5. curl http://127.0.0.1:8983/solr/test_restore/update?commit=true -H
'Content-type:application/json' -d '[ \{"id" : "2"}]'
a) Verify doc count on all replicas for each shard.
"response":\{"numFound":2,"start":0,"maxScore":1.0,"docs":[ { "id":"2"}, \{
"id":"1"}]
b) Verify from Solr logs (attached)
c) Verify from tlog.state in the admin/metrics api response for node 8983 and
7574 (attached)
Attaching the patch and logs to the JIRA.
> Restore replica always in buffering state
> -----------------------------------------
>
> Key: SOLR-12065
> URL: https://issues.apache.org/jira/browse/SOLR-12065
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Varun Thacker
> Assignee: Varun Thacker
> Priority: Major
> Attachments: 12605UTLogs.txt.zip, logs_and_metrics.zip,
> restore_snippet.log
>
>
> Steps to reproduce:
>
> -
> [http://localhost:8983/solr/admin/collections?action=CREATE&name=test_backup&numShards=1&nrtReplicas=1]
> - curl [http://127.0.0.1:8983/solr/test_backup/update?commit=true] -H
> 'Content-type:application/json' -d '
> [ \{"id" : "1"}
> ]'
> -
> [http://localhost:8983/solr/admin/collections?action=BACKUP&name=test_backup&collection=test_backup&location=/Users/varunthacker/backups]
> -
> [http://localhost:8983/solr/admin/collections?action=RESTORE&name=test_backup&location=/Users/varunthacker/backups&collection=test_restore]
> * curl [http://127.0.0.1:8983/solr/test_restore/update?commit=true] -H
> 'Content-type:application/json' -d '
> [
> {"id" : "2"}
> ]'
> * Snippet when you try adding a document
> {code:java}
> INFO - 2018-03-07 22:48:11.555; [c:test_restore s:shard1 r:core_node22
> x:test_restore_shard1_replica_n21]
> org.apache.solr.update.processor.DistributedUpdateProcessor; Ignoring commit
> while not ACTIVE - state: BUFFERING replay: false
> INFO - 2018-03-07 22:48:11.556; [c:test_restore s:shard1 r:core_node22
> x:test_restore_shard1_replica_n21]
> org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor;
> [test_restore_shard1_replica_n21] webapp=/solr path=/update
> params={commit=true}{add=[2 (1594320896973078528)],commit=} 0 4{code}
> * If you see "TLOG.state" from [http://localhost:8983/solr/admin/metrics]
> it's always 1 (BUFFERING)
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]