Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
732 views
in Technique[技术] by (71.8m points)

lucene - Unable to restore backup in solr 4.10

I tried backing up my collection using

http://xxxx:8983/solr/collection1/replication?command=backup&name=myTestbackup&location=/opt/solrBackupFolder

I was able to confirm that with /replication?command=details&wt=xml

<lst name="backup">
  <str name="startTime">xxx xxx xx xx:xx:xx UTC xxxx</str>
  <int name="fileCount">303</int>
  <str name="status">success</str>
  <str name="snapshotCompletedAt">xxx xxx xx xx:xx:xx UTC xxxx</str>
  <str name="snapshotName">myTestbackup</str>
</lst>

For testing I am removing all the existing documents with update?stream.body=<delete><query>*:*</query></delete> where i can see the Num Docs:0 in solr After confirming the number of documents are 0 then I am using

http://xxxx:8983/solr/collection1/replication?command=restore&name=myTestbackup&core=collection1&location=/opt/solrBackupFolder

To restore my backup but it shows the below as my response when i restore

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">0</int>
    </lst>
</response>

and /replication?command=restorestatus this gives me

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">0</int>
    </lst>
</response>

the documentation(I am using this as there is nothing i found for 4.10 and backup works) says it should return a restorestatus but i never got it. Can someone help me if I am missing something?

question from:https://stackoverflow.com/questions/65938109/unable-to-restore-backup-in-solr-4-10

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...