logstash-input-mongodb icon indicating copy to clipboard operation
logstash-input-mongodb copied to clipboard

missing the first doc record.

Open inetufo opened this issue 7 years ago • 4 comments

missing the first doc record.

inetufo avatar Feb 27 '17 11:02 inetufo

@phutchins The first doc record is not handled, pls review this pr and merge to master to release a new gem :)

inetufo avatar Feb 27 '17 11:02 inetufo

@inetufo can you give a little more detail around what you're changing here? Seems like there's more going on than catching the missing first doc.

It looks like you're adding a range instead of a starting point. The current behavior is to check if we have a placeholder. If we don't have one, start at the beginning of the collection and process all entries waiting for more. If we do have a placeholder, we start there and continue processing all entries waiting for more.

phutchins avatar May 04 '17 14:05 phutchins

Hi, this is a real bug need to be solved. Please refer to #71

TaurusD avatar Aug 04 '17 02:08 TaurusD

@inetufo can you give a little more detail around what you're changing here? Seems like there's more going on than catching the missing first doc.

It looks like you're adding a range instead of a starting point. The current behavior is to check if we have a placeholder. If we don't have one, start at the beginning of the collection and process all entries waiting for more. If we do have a placeholder, we start there and continue processing all entries waiting for more.

I added a placeholder and also it removes the first document of data !

hadeer-e avatar Sep 12 '23 08:09 hadeer-e