doWhile uses nested futures to achieve asynchronous iteration

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • ALL
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The doWhile utility defined in src/mongo/db/s/transaction_coordinator_futures_util.h uses nested futures to achieve asynchronous iteration. This antipattern risks hitting the maximum future chain depth limit. Reimplement this function using the AsyncTry utility, which implements asynchronous iteration without future nesting.

            Assignee:
            Myles Hathcock
            Reporter:
            James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: