副本引发的问题"corrupt data exception"

本文介绍了在使用公式语言保存Notes文档时遇到“corruptdataexception”错误的解决方法。问题通常由不当的数据库备份方式引起,如通过复制而非拷贝的方式备份数据库。文章详细解释了拷贝与复制的区别及正确处理方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:使用公式语言保存文档的时候,提示"corrupt data exception"

解决之道:确认当前服务器上是否有此数据库对于那个的副本(通过复制创建的),删除即可。

原理剖析:notes数据库文件的备份常用两种方式:拷贝和复制。拷贝的时候,此数据库id和文档id都会发生变化,而后者不会,并且后者可以排程备份。

[root@mobilexw ~]# curl -XGET localhost:9200/_cluster/allocation/explain {"note":"No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.","index":"pds_dacfga_egebpl","shard":0,"primary":true,"current_state":"unassigned","unassigned_info":{"reason":"ALLOCATION_FAILED","at":"2025-03-02T16:10:26.604Z","failed_allocation_attempts":1,"details":"failed shard on node [4bMI2hXVThm4Qr1axNbCjA]: shard failure, reason [merge failed], failure MergeException[org.apache.lucene.index.CorruptIndexException: checksum failed (hardware problem?) : expected=77ca06fc actual=dc58566c (resource=BufferedChecksumIndexInput(MMapIndexInput(path=\"/opt/dpmon/server/vendor/elasticsearch/data/nodes/0/indices/uiziMJtlSXWQ4SCFdQ8zPQ/0/index/_39qu.cfs\") [slice=_39qu_Lucene80_0.dvd]))]; nested: CorruptIndexException[checksum failed (hardware problem?) : expected=77ca06fc actual=dc58566c (resource=BufferedChecksumIndexInput(MMapIndexInput(path=\"/opt/dpmon/server/vendor/elasticsearch/data/nodes/0/indices/uiziMJtlSXWQ4SCFdQ8zPQ/0/index/_39qu.cfs\") [slice=_39qu_Lucene80_0.dvd]))]; ","last_allocation_status":"no_valid_shard_copy"},"can_allocate":"no_valid_shard_copy","allocate_explanation":"cannot allocate because all found copies of the shard are either stale or corrupt","node_allocation_decisions":[{"node_id":"4bMI2hXVThm4Qr1axNbCjA","node_name":"node-1","transport_address":"10.39.0.162:9300","node_attributes":{"ml.machine_memory":"67387416576","xpack.installed":"true","transform.node":"true","ml.max_open_jobs":"512","ml.max_jvm_size":"4294967296"},"node_decision":"no","store":{"in_sync":true,"allocation_id":"u37eokDMRGyGni3c6xnwdw","store_exception":{"type":"corrupt_index_exception","reason":"failed engine (reason: [merge failed]) (resource=preexisting_corruption)","caused_by":{"type":"i_o_exception","reason":"failed engine (reason: [merge failed])","caused_by":{"type":"corrupt_index_exception","reason":"checksum failed (hardware problem?) : expected=77ca06fc actual=dc58566c (resource=BufferedChecksumIndexInput(MMapIndexInput(path=\"/opt/dpmon/server/vendor/elasticsearch/data/nodes/0/indices/uiziMJtlSXWQ4SCFdQ8zPQ/0/index/_39qu.cfs\") [slice=_39qu_Lucene80_0.dvd]))"}}}}}]}[root@mobilexw ~]# 这个报错里面有pds_dacfga_egebpl这个索引的信息吗?
03-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值