While using MLCP I encountered a strange issue with '-batch_size' option given in the options file(options.txt) when copying documents from one database to another, for example if -batch_size = 10 and the number of documents to be transferred(on the basis filtering options provided) are 106 and now I execute the command :
mlcp.bat -options_file "options.txt"
The Content Pump stats received are as :
INFO contentpump.LocalJobRunner:com.marklogic.mapreduce.ContentPumpStats:
INFO contentpump.LocalJobRunner: INPUT_RECORDS: 106
INFO contentpump.LocalJobRunner: OUTPUT_RECORDS: 106
INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_COMMITTED: 100
INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_FAILED: 0
INFO contentpump.LocalJobRunner: Total execution time: 37 sec
It seems that the remainder documents left after batching(batch size=10) that is 10*10 + 6, the 6 documents are not transferred to the desired database.
Thus somehow, it only transfers the documents which falls under complete batches and not the left over documents which cannot form complete batch.
Can someone please suggest a workaround for this and cause of this behavior.