मुझे अब भी नहीं पता कि रुकने का कारण क्या है, लेकिन ऐसा लगता है कि यह अपराधी है।
विराम के दौरान, Cursor.nextObject पहले रिटर्न से पहले कई बार फोन किया जा रहा है। इनमें से कुछ कॉल null लौटा रहे हैं . समाधान यह सुनिश्चित करना है कि Cursor.nextObject समवर्ती कभी नहीं कहा जाता है।
if (this.cursor && !this.cursor_exec && this.length() < this.concurrency) {
this.cursor_exec = true;
this.cursor.nextObject(function(err, item) {
console.log(this.name + ': ' + (item ? item._id : null) + ' ' + (err ? err : null));
this.cursor_exec = false;
if (item) {
this.push(item);
} else {
delete this.cursor;
}
}.bind(this));
}