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

"failed to create service entry worker thread" discards root cause exception message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.3.6
    • Fix Version/s: 4.7.0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Service arch 2020-06-29, Service arch 2020-07-13
    • Linked BF Score:
      23

      Description

      I created a client in Ruby configured to establish 20,000 connections to local replica set servers (PSSA), as follows:

      Mongo::Client.new(['localhost:34420'],min_pool_size:20000,max_pool_size:100000)
      

      At about 6,000 connections per each of the servers, the servers start closing connections. Looking in the server log I see:

      {"t":{"$date":"2020-05-29T21:49:15.723-04:00"},"s":"W", "c":"EXECUTOR","id":22993,  "ctx":"conn5604","msg":"Terminating session due to error: {status}","attr":{"status":{"code":1,"codeName":"InternalError","errmsg":"failed to create ser
      vice entry worker thread"}}}
      

      This message appears to be produced in src/mongo/transport/service_entry_point_utils.cpp:

          } catch (...) {
              return {ErrorCodes::InternalError, "failed to create service entry worker thread"};
          }
      

      The above code appears to discard the root cause of the error, making further troubleshooting impossible.

      As a MongoDB user I would like the server to provide error messages that indicate the cause of the problem, so that I can troubleshoot the problems.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a.chen Andrew Chen (Inactive)
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: