Hi Tim, You can create a pre commit trigger and attach to your database. In pre commit trigger module you can control your ingestion and write logs to log files.
Regards, Abhishek Jain Sent with BlackBerry Work (www.blackberry.com) ________________________________ From: Arvind Kumar <[email protected]> Sent: 12 May 2017 7:55 pm To: MarkLogic Developer Discussion <[email protected]> Subject: Re: [MarkLogic Dev General] MLCP Error Return 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]<mailto:[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]<mailto:[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]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
