Refactor establishShardCursors() to return OwnedRemoteCursors

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, establishShardCursors() returns RemoteCursors, which could cause cursors to leak if exceptions are thrown before callers have the chance to kill the cursors. The function should be modified to return OwnedRemoteCursors from the get-go so that no callers will need to worry about leaking cursors.

      Some callers place raw RemoteCursors into objects like AsyncResultsMerger, which should also be modified to take in owned cursors.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: