[CSHARP-4502] UpdateMany call fails after updating from 2.18 to 2.19 Created: 30/Jan/23 Updated: 17/Feb/23 Resolved: 17/Feb/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J.D. Robertson | Assignee: | Robert Stam |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||
| Description |
| Comments |
| Comment by Robert Stam [ 17/Feb/23 ] | ||||||||||||||||||||||||||||||||||||||
|
Closing this ticket as a duplicate of | ||||||||||||||||||||||||||||||||||||||
| Comment by J.D. Robertson [ 10/Feb/23 ] | ||||||||||||||||||||||||||||||||||||||
|
It does very much sound like the same issue as that other bug report. We also have very generic code that does not know the type of the fields it is interacting with and so boxes the types in an object. Which works in LINQ2 but seems not to work in LINQ3. I don't have an ETA on when I can produce a standalone reproducing case. I have several higher priorities to look at right now. | ||||||||||||||||||||||||||||||||||||||
| Comment by Robert Stam [ 10/Feb/23 ] | ||||||||||||||||||||||||||||||||||||||
|
Based on the error message and the stack trace I suspect this is the same underlying issue as If I can get the provided code to compile I can confirm that. | ||||||||||||||||||||||||||||||||||||||
| Comment by Robert Stam [ 10/Feb/23 ] | ||||||||||||||||||||||||||||||||||||||
|
I still don't seem to have enough information to reproduce this. It would help to have the class definitions for `MyEntry` and `AddressGroupEntry`. The call to `changes.Add` in `DeleteAllThatMatch` doesn't compile because the `Tuple` types don't mach. Could you please provide a full example that isn't missing anything and that compiles without errors that I could use to reproduce this with? Thanks. | ||||||||||||||||||||||||||||||||||||||
| Comment by Alexandre Junior [ 06/Feb/23 ] | ||||||||||||||||||||||||||||||||||||||
|
Got the same bug, broke down my application. I've filed an issue with a similar repro: https://jira.mongodb.org/browse/CSHARP-4519 | ||||||||||||||||||||||||||||||||||||||
| Comment by J.D. Robertson [ 30/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||
|
Apologies, should be:
It may be easier to strip out the generic:
| ||||||||||||||||||||||||||||||||||||||
| Comment by Robert Stam [ 30/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||
|
Thank you for reporting this issue. My apologies that you have been affected. I'm trying to reproduce this but can't get a test to compile. There seems to be at least one mismatched angle brackets, and I can't figure out the relationship between TEntry, MyEntry and AddressGroupEntry. As soon as I receive a bit more information I will continue my attempt to reproduce this. You can see my initial attempt to reproduce this here: https://github.com/rstam/mongo-csharp-driver/tree/csharp4502 |