Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log reaped cursor Information (mloginfo --cursors) #710

Closed
mitesh-gosavi opened this issue Jul 8, 2019 · 0 comments
Closed

Log reaped cursor Information (mloginfo --cursors) #710

mitesh-gosavi opened this issue Jul 8, 2019 · 0 comments

Comments

@mitesh-gosavi
Copy link
Contributor

Expected behavior

Sometimes, queries fail because a cursor cannot be found. It would be really useful to see in the mongod logs when a cursor is reaped, to determine if that cursor was lost due to timeout.
We should consider parsing the logs to export the information when a cursor is reaped (and not when it is merely marked for deletion, which is annoying for pinned cursors, which will not be timed out).

Actual/current behavior

So far, mtools does not parse any reaped cursor information; however, we can add feature to it to display the reaped cursor information.

Steps to reproduce the actual/current behaviour

The milestone is to parse the information related to the cursors which were reaped out for exceeding the timeout limit.
The parser on receiving the --cursor flag can search for log lines containing the “Cursor id” token. On encountering the token, it can parse the cursor id and reaped-out time using following tokens: timed out, idle since.

Environment

Software Version
mtools 1.5.3
MongoDB server 4.0.10
savinay-vijay added a commit to savinay-vijay/mtools that referenced this issue Jul 8, 2019
savinay-vijay added a commit to savinay-vijay/mtools that referenced this issue Jul 8, 2019
@stennie stennie modified the milestones: 1.6.1, 1.6.0 Dec 27, 2019
@stennie stennie changed the title Log Reaped Cursor Information Log Reaped Cursor Information (mloginfo --cursors) Dec 27, 2019
@stennie stennie changed the title Log Reaped Cursor Information (mloginfo --cursors) Log reaped cursor Information (mloginfo --cursors) Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants