Info
Second fix attempt for BF-26979.
Extending the named pipe reader retry loop to 30 seconds, using appropriate backoff on how fast they retry after the first one second, so they don't spin like crazy on a system that is already overloaded. (Retry is currently done every 1 msec for up to 1,000 times, then it gives up. We want these to be dense during the first second as in production the waits add to the query latency, and the pipe is in the process of being created so should show up very quickly.)
The retry loops are in the NamedPipeInput::doOpen() methods of named_pipe_posix.cpp and named_pipe_posix.cpp.
The InputStream() constructor in input_stream.h also needs to add more detail to the error message here:
https://github.com/mongodb/mongo/blob/e717ef6798aad3e6ec65bee84921fc3961db4426/src/mongo/db/storage/input_stream.h#L62
FYI arun.banala@mongodb.com yoonsoo.kim@mongodb.com
Top User Comments
xgen-internal-githook commented on Tue, 6 Dec 2022 00:44:10 +0000:
Author:
{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}
Message: SERVER-71849 Named Pipes BF-26979 second fix: extend reader retry loop
Branch: master
https://github.com/mongodb/mongo/commit/71159ae33fe152fdc47bfae128d27888ef4d7499