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

Followup on Transaction retries corrupt subdocument arrays #14359

Closed
2 tasks done
vkarpov15 opened this issue Feb 19, 2024 · 1 comment
Closed
2 tasks done

Followup on Transaction retries corrupt subdocument arrays #14359

vkarpov15 opened this issue Feb 19, 2024 · 1 comment
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue

Comments

@vkarpov15
Copy link
Collaborator

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Copied from #14340 (comment):

Hey @vkarpov15 — we are seeing some strange behavior that I think is related to this issue.

Only in Jest, and on Mongoose v6.12.3, our subdocument arrays are being transformed into objects like the OP posted.

We're seeing this when using the findOneAndUpdate method. Probably happening elsewhere too, but that's where we're seeing it now. We do use transactions, but only when replica sets are available, and our testing does not implement any type of transactions at all.

Does this ring any bells for you?

@vkarpov15 vkarpov15 added the needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue label Feb 19, 2024
@vkarpov15 vkarpov15 added this to the 6.12.7 milestone Feb 19, 2024
@vkarpov15
Copy link
Collaborator Author

Followed up via email, looks like the user resolved this issue on their end. No indication this is a Mongoose issue.

@vkarpov15 vkarpov15 removed this from the 6.12.7 milestone Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro script Maybe a bug, but no repro script. The issue reporter should create a script that demos the issue
Projects
None yet
Development

No branches or pull requests

1 participant