Marklogic mlreloadmodule在添加ml单元测试后出现错误

当运行mlrelaodmodules时,我得到以下错误信息

> Execution failed for task ':mlLoadModules'.
> > Local message: failed to apply resource at documents: Bad Request. Server Message: XDMP-CONFLICTINGUPDATES:
> xdmp:document-insert("/test/css/coverage.css",
> document{text{"/**
* Copyright 2012-2019 MarkLogic
> Corporation
*
..."}}, <options
> xmlns="xdmp:document-insert"><permissions><sec:permission
> .../>...</permissions></options>) -- Conflicting updates
> xdmp:document-insert("/test/css/coverage.css",
> document{text{"/**
* Copyright 2012-2019 MarkLogic
> Corporation
*
..."}}, (<sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>10509128414665615137</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>13041542794130379697</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>insert</sec:capability><sec:role-id>15520654661378671735</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>insert</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>10509128414665615137</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>update</sec:capability><sec:role-id>15520654661378671735</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>7089338530631756591</sec:role-id></sec:permission>),
> (), 0) and xdmp:document-insert("/test/css/coverage.css",
> document{text{"/**
* Copyright 2012-2019 MarkLogic
> Corporation
*
..."}}, (<sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>10509128414665615137</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>insert</sec:capability><sec:role-id>15520654661378671735</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>13041542794130379697</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>execute</sec:capability><sec:role-id>10509128414665615137</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>insert</sec:capability><sec:role-id>12062832703728382323</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>update</sec:capability><sec:role-id>15520654661378671735</sec:role-id></sec:permission>,
> <sec:permission
> xmlns:sec="http://marklogic.com/xdmp/security"><sec:capability>read</sec:capability><sec:role-id>7089338530631756591</sec:role-id></sec:permission>),
> (), 0)

解决方案:

试试用这个属性运行任务。

mlModulesLoaderBatchSize=1

如果加载需要更多的时间,那么尝试增加这个值。

下面的文档可以帮助你调试这个问题。

调试模块加载

给TA打赏
共{{data.count}}人
人已打赏
未分类

如何让map函数返回一个比第一个数组大的数组?

2022-9-9 1:39:23

未分类

.Any(s => s.Contains)和.Contains之间有什么区别?

2022-9-9 1:50:19

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索