Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Service Arch 2023-12-11
Description
While doing performance testing, I encountered this bug
MongoDB Enterprise > let reallyLongMsg = 'x'.repeat(10 * 1024 * 1024)
MongoDB Enterprise > db.findOneLargeMsgBM.insert({name: reallyLongMsg})
WriteResult({ "nInserted" : 1 })
MongoDB Enterprise > db.findOneLargeMsgBM.find({})
Error: network error while attempting to run command 'find' on host '127.0.0.1:27021' :: caused by :: dbclient error communicating with server 127.0.0.1:27021 :: caused by :: Unable to read from gRPC stream
MongoDB Enterprise > ^C
bye
{"t":
{{
{"$date":"2023-11-27T20:04:20.754Z"}}}
,"s":"I", "c":"QUERY", "id":22791, "ctx":"js","msg":"Failed to end logical session","attr":{"lsid":{"id":{"$uuid":"e6e50f94-9b5b-48da-9cd8-276e4f48367c","error":
{"code":9001,"codeName":"SocketException","errmsg":"socket exception [FAILED_STATE] server [127.0.0.1:27021 failed]"}}}}}
The gRPC stream seems to shut down when trying to read in a 10MB message. Notably this done insert the message, so it seems to be ok when writing a large message.
Investigate what is happening here, and fix the bug.