-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
Summary
After an error with invalid unicode strings the thread is unable to perform operations on MongoDB.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
MongoDB C# 2.10
How to Reproduce
Will PR on github.
[Fact]
public void GetBytesUsingThreadStaticBuffer_should_leave_the_thread_operational()
Additional Background
- Call to rent buffer with invalid utf8 string
- encoding.GetBytes throws (using strict encoder)
- disposable is not created, thread static attributes holing buffer
- every subsequent call in this thread throws
- is duplicated by
-
CSHARP-4855 Writing invalid UTF8 string (without fallback, mongo strict utf8 encoder) locks thread static buffers and throws at every call until process restart.
- Closed