【问题标题】:Solr not backing up coreSolr 不备份核心
【发布时间】:2021-04-22 05:37:42
【问题描述】:

我正在尝试备份 Solr 核心(Solr 8.1.1 处于独立模式)。我根据https://solr.apache.org/guide/8_1/index-replication.html#configuring-the-replicationhandler添加了复制请求处理程序@

当我运行 /solr/core/replication?command=backup 时,它会返回:

{
  "responseHeader":{
    "status":0,
    "QTime":1},
  "status":"OK"}

但是在运行 /solr/core/replication?command=details 时会返回:

...
"backup":[
      "exception","/opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22sklw_Lucene50_0.tim"]}}

当我指定备份名称和位置(例如 /solr-backups/,它归 solr 用户所有)时,它从不创建任何文件。

我在这里做错了什么?如何让 solr 创建备份?

编辑: 这显示在日志文件中:

2021-04-23 01:21:18.056 ERROR (Thread-136) [   ] o.a.s.h.SnapShooter Exception while creating snapshot
java.nio.file.NoSuchFileException: /opt/solr-8.1.1/server/solr/core/data/restore.20200414231901420/_22ufue_1mh0.liv
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_282]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_282]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_282]
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[?:1.8.0_282]
        at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[?:1.8.0_282]
        at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[?:1.8.0_282]
        at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:238) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
        at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
        at org.apache.lucene.store.Directory.copyFrom(Directory.java:181) ~[lucene-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:15:24]
        at org.apache.solr.core.backup.repository.LocalFileSystemRepository.copyFileFrom(LocalFileSystemRepository.java:145) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
        at org.apache.solr.handler.SnapShooter.createSnapshot(SnapShooter.java:238) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
        at org.apache.solr.handler.SnapShooter.lambda$createSnapAsync$2(SnapShooter.java:205) ~[solr-core-8.1.1.jar:8.1.1 fcbe46c28cef11bc058779afba09521de1b19bef - ab - 2019-05-22 15:20:01]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]

【问题讨论】:

  • Solr 日志是否显示任何有用的信息?
  • 已将日志消息添加到原始问题中。

标签: solr


【解决方案1】:

看起来这是对早期 Solr 中的一个错误的回归,该错误在 8.0.0 中重新引入。它显然已在 8.4.0 中修复

https://issues.apache.org/jira/browse/SOLR-13872

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-30
    • 1970-01-01
    • 2012-12-06
    • 1970-01-01
    • 1970-01-01
    • 2017-03-11
    • 2013-06-07
    • 1970-01-01
    相关资源
    最近更新 更多