Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71849

Named Pipes: Extend reader retry loop from 1 sec to 30 sec

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 20

      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 

            Assignee:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: