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

Improve error reporting in launchServiceWorkerThread()

    • Service arch 2020-11-30
    • 0

      We use launchServiceWorkerThread() to spawn new threads for ServiceExecutorSynchronous. It may return a non-okay status on the event of a failure. However, the information stored in the returned status is sometimes not very useful (see below). We should improve the error reporting components of this function to facilitate debugging.

      [cpp_unit_test:transport_test] 2020-07-08T09:53:11.436+0000 | 2020-07-08T09:53:11.436Z E  TEST     23070   [main] "Throwing exception","attr":{"exception":"Expected ::mongo::Status::OK() == (status) (OK  == InternalError Failed to create service entry worker thread: pthread_create failed: Success) @src/mongo/transport/service_executor_test.cpp:144"}
      

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: