Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6089

race promises for timeout in server selection and connection checkout

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a driver user,
      I want server selection and connection checkout to maintain the async context,

      So that the driver has complete async stack traces.

      User Impact

      • Errors thrown in server selection and connection checkout will not have a proper stack trace.

      Dependencies

      • n/a

      Unknowns

      • n/a

      Acceptance Criteria

      Implementation Requirements

      • Replace `TimeoutController` with a subclass of Promise that rejects when the timeout expires

      Testing Requirements

      • all existing tests pass.

      Documentation Requirements

      • n/a

      Follow Up Requirements

      • n/a

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: