添加 ml 单元测试后,Marklogic mlreloadmodule 抛出错误
Marklogic mlreloadmodule is throwing error after adding ml unit tests
虽然 运行 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
如果加载时间较长,请尝试增加该值。
以下文档可以帮助您更多地调试问题。
虽然 运行 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
如果加载时间较长,请尝试增加该值。
以下文档可以帮助您更多地调试问题。