Hi Tim, Are you using any transform module while ingestion through mlcp.
Regards Arvind Kr. On Fri, May 12, 2017 at 6:39 PM, Indrajeet Verma <[email protected]> wrote: > Hi Tim - > > As per my understanding there is nothing by which you can return > success/failure. Other developers can guide you if anything is there in > mlcp. > > However your problem should solve using thread count property with value > 1 in your option file. > -thread_count > 1 > > Regards, > Indy > > On Fri, May 12, 2017 at 6:03 PM, Timothy Pearce <[email protected]> > wrote: > >> Hello, >> >> >> >> I’m currently working on improving the continuous integration system I >> currently have which uses Jenkins. It’s deploying our modules into the >> database via MLCP and the XDBC server. I am seeing one issue with the mlcp >> script and it is not returning any errors via exit code when it fails to >> updated a document because it is locked. It is returning exit 0 with “exit >> $?” tacked on to the end of the run after the mlcp.sh script is called. Is >> there any way to get this to throw a non 0 exit code on error? I’m not >> seeing any reference to checking if it the script ran with success or >> parameters to add that in the mlcp documentation. For a snippet of the >> mlcp’s logging which shows the error: >> >> >> >> 17/05/11 15:10:41 INFO contentpump.FileAndDirectoryInputFormat: Total >> input paths to process : 14 >> >> 17/05/11 15:10:43 INFO contentpump.LocalJobRunner: completed 100% >> >> 17/05/11 15:10:43 ERROR mapreduce.ContentWriter: XDMP-LOCKED: Document or >> Directory is locked >> >> 17/05/11 15:10:43 WARN mapreduce.ContentWriter: Failed document >> /utils/a.xqy in file:/modules/utils/a.xqy >> >> 17/05/11 15:10:46 ERROR mapreduce.ContentWriter: XDMP-LOCKED: Document or >> Directory is locked >> >> 17/05/11 15:10:46 WARN mapreduce.ContentWriter: Failed document >> /utils/b.xqy in file:/modules/utils/b.xqy >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: >> com.marklogic.mapreduce.MarkLogicCounter: >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: INPUT_RECORDS: 143 >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS: 143 >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: >> OUTPUT_RECORDS_COMMITTED: 143 >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_FAILED: >> 0 >> >> 17/05/11 15:10:46 INFO contentpump.LocalJobRunner: Total execution time: >> 4 sec >> >> + exit 0 >> >> >> >> I’ve verified that the file was not overwritten via adding data to a file >> stored in marklogic and using mlcp to replace the file, then querying with >> fn:doc to verify the data was removed. It did not replace the file. Any >> guidance to helping verify the files were actually written into marklogic >> would be appreciated. >> >> >> >> Thanks, >> >> Tim >> >> >> >> >> Nothing in this message is intended to constitute an electronic signature >> unless a specific statement to the contrary is included in this message. >> Confidentiality Note: This message is intended only for the person or >> entity to which it is addressed. It may contain confidential and/or >> proprietary material. Any review, transmission, dissemination or other use, >> or taking of any action in reliance upon this message by persons or >> entities other than the intended recipient is prohibited. If you received >> this message in error, please contact the sender and delete it from your >> computer. >> >> _______________________________________________ >> General mailing list >> [email protected] >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general >> >> > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
