Reported here, but I was told to post on StackOverflow
I'm trying to read the users from a forum database. Eventually, I want to put the data into PostgreSQL, but for now it just discards the data after reading it. My code is here.
The database is being told not to expire the cursor here, which calls this function, which sets no-timeout.
However, I'm getting an error here that says Cursor not found, cursor id: 28781399268
(the numbers change on every run) after going through about 96k of the 141k users.
It turns out the Go MongoDB driver has a bug. I've submitted a fix here: https://github.com/go-mgo/mgo/pull/295
It was setting the NoCursorTimeout flag on the wire message, but not the noCursorTimeout property on the query.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With