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

Investigate docs transaction example for unbounded recursion

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Docs, Docs Examples
    • 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?

      A user left feedback on the transaction examples in our docs citing a potential issue with the recursive commitWithRetry call never stopping. The feedback was reported in DOCSP-35210.

      We should investigate the example and see if there is a potential infinite loop, and update the example to remove the loop if necessary.

      User Impact

      The page where the feedback was left receives approximately 2,000 page views per month. This number accounts for all drivers users (not just Node), so the number of users impacted by this issue is less than that figure.

      Unknowns

      There was some discussion in the Node driver Slack channel about whether async functions can cause the issue reported by the user. cc bailey.pearson@mongodb.com

      Follow Up Requirements

      • additional tickets to file, required releases, etc

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: