如何解决无法在 solr 4.10 中恢复备份
我尝试使用
备份我的收藏http://xxxx:8983/solr/collection1/replication?command=backup&name=myTestbackup&location=/opt/solrBackupFolder
我可以通过 /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>
为了测试,我将删除所有现有文档
update?stream.body=<delete><query>*:*</query></delete>
在那里我可以看到 solr 中的 Num Docs:0
确认文件数为 0
后,我正在使用
http://xxxx:8983/solr/collection1/replication?command=restore&name=myTestbackup&core=collection1&location=/opt/solrBackupFolder
要恢复我的备份,但它显示以下作为我恢复时的响应
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
</lst>
</response>
和 /replication?command=restorestatus
这给了我
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
</lst>
</response>
documentation(我正在使用它,因为我在 4.10 和备份中找不到任何东西)说它应该返回一个 restorestatus
但我从来没有得到它。如果我遗漏了什么,有人可以帮助我吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。