Marklogic How can I find out list documents have Key Mismatch

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:55:34

问题


I have some documents return "Key mismatch" errors.

fn:doc("/city/010101.xml)

 result:
 [1.0-ml] XDMP-KEYMISMATCH: fn:doc("/city/010101.xml") -- Key mismatch, 
 CacheExpandedTreeStorage::put , uniqKey1=0x2c0d120d2ada6c2a5, uniqKey2=0xa5a9ab1b8021df93e10, uriKey1=0x8ac46966e011159b0d, uriKey2=0xfa38e13b022c1f5115

It looks like there are lost file data from the storage or file system layer.

Indexed32FileSequentialReader::read: XDMP-READ: /data/Forests/-05-A/0000df03/TreeData: Invalid read

How can I loop through over two million records to find out which documents have keyMismatch?

Loop through collection but I don't know what query to tell MarkLogic retrieves documents have Key mismatch uniqKey issues.

let $u := cts:uris((),(),
                cts:and-query(cts:collection-query("/city"))
          )
 return ($u)

来源:https://stackoverflow.com/questions/51902549/marklogic-how-can-i-find-out-list-documents-have-key-mismatch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!