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

[MongoDB] Return error instead of logging a warning on primary key presence in retData #936

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

Tang8330
Copy link
Contributor

@Tang8330 Tang8330 commented Sep 27, 2024

  1. We don't see anything in our logs in the past 15d.
  2. I've also tested this and it works as expected.

To be extra safe, let's have it return an error if the primary key doesn't exist or there's a value mismatch in the payload. After some time, we can then remove it.

@Tang8330 Tang8330 changed the title [MongoDB] Removing unnecessary loop [MongoDB] Remove the need to iterate over pkMap Sep 27, 2024
@Tang8330 Tang8330 marked this pull request as ready for review September 27, 2024 21:43
@Tang8330 Tang8330 requested a review from a team as a code owner September 27, 2024 21:43
@Tang8330 Tang8330 changed the title [MongoDB] Remove the need to iterate over pkMap [MongoDB] Return error instead of logging a warning Sep 27, 2024
@Tang8330 Tang8330 changed the title [MongoDB] Return error instead of logging a warning [MongoDB] Return error instead of logging a warning on primary key presence in retData Sep 27, 2024
@Tang8330 Tang8330 merged commit 45ca0e9 into master Sep 27, 2024
3 checks passed
@Tang8330 Tang8330 deleted the cleanup-mongodb branch September 27, 2024 22:17
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.

2 participants