-
Notifications
You must be signed in to change notification settings - Fork 2
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
S3UTILS-157: explicit closing of mongodb cursors #310
Conversation
Hello williamlardier,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Putting this work on hold as for now this does not look like the cause of the number of open connections to MongoDB, we need to reproduce first, otherwise these changes are not needed. |
c70767f
to
a07dc8e
Compare
a1769c7
to
e29bfb6
Compare
54984b6
to
9ac96af
Compare
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
The following options are set: create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
return usersBucketCreationDatesArray | ||
.reduce((map, obj) => ({ ...map, [obj._id]: obj.value.creationDate }), {}); | ||
} catch (err) { | ||
log.error('Failed to read __usersbucket collection', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: any reason to catch the exception instead of letting it propagate up, like the other exceptions which may be generated from within getObjectMDStats()
and get caught at the end of that function?
(i am fine either way, just wondering)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To was mainly to ensure the right error messages are logged, so we can return an arsenal error
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command:
Alternatively, the |
/create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
9ac96af
to
fc0694e
Compare
History mismatchMerge commit #5017e66391393dbb5a59114897abf68d59efdb21 on the integration branch It is likely due to a rebase of the branch Please use the The following options are set: create_integration_branches |
/reset |
Reset completeI have successfully deleted this pull request's integration branches. The following options are set: create_integration_branches |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
The following options are set: create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
(rebasing to remove a unused line, leftover from testing) |
/approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve, create_integration_branches |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue S3UTILS-157. Goodbye williamlardier. |
There is suspicion of cursor leaks with the CountItems job, especially when enumerating a large number of cursors. This PR adds explicit checks after the end of the processing. The cursors should already be closed as per the nature of the
forEach
, that closes the cursor when there is no resource to check anymore.Issue: S3UTILS-157