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

fix(NODE-1502): Command monitoring commands should be copies #2832

Merged

Conversation

W-A-James
Copy link
Contributor

@W-A-James W-A-James commented Jun 7, 2021

Description

Changed events for Command monitoring to hold copies of the commands instead of the commands themselves to prevent changing state in event monitoring by modifying extractCommand function in src/cmap/command_monitoring_events.ts

What changed?

  • src/cmap/command_monitoring_events.ts
  • test/functional/apm.test.js
  • test/functional/multiple_db.test.js
  • test/unit/cmap/command_monitoring_events.test.js

@W-A-James W-A-James requested review from emadum and nbbeeken June 8, 2021 13:45
test/functional/apm.test.js Outdated Show resolved Hide resolved
test/functional/apm.test.js Outdated Show resolved Hide resolved
test/functional/apm.test.js Outdated Show resolved Hide resolved
test/functional/apm.test.js Outdated Show resolved Hide resolved
@W-A-James W-A-James requested a review from nbbeeken June 10, 2021 19:05
test/unit/cmap/command_monitoring_events.test.js Outdated Show resolved Hide resolved
test/unit/cmap/command_monitoring_events.test.js Outdated Show resolved Hide resolved
test/unit/cmap/command_monitoring_events.test.js Outdated Show resolved Hide resolved
test/unit/cmap/command_monitoring_events.test.js Outdated Show resolved Hide resolved
test/unit/cmap/command_monitoring_events.test.js Outdated Show resolved Hide resolved
@W-A-James W-A-James force-pushed the NODE-1502/4.0/Command-monitoring-commands-should-be-copies branch from 1616ec2 to b6c58ae Compare June 11, 2021 20:14
@nbbeeken nbbeeken requested review from dariakp and durran June 11, 2021 20:17
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nbbeeken nbbeeken merged commit a2887db into 4.0 Jun 14, 2021
@nbbeeken nbbeeken deleted the NODE-1502/4.0/Command-monitoring-commands-should-be-copies branch June 14, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants