Improve error reporting in launchServiceWorkerThread()

XMLWordPrintableJSON

    • Service arch 2020-11-30
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              Benjamin Caimano (Inactive)
              Reporter:
              Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: