Don't throw if no plan cache entry is available

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

      We should avoid throwing & retrying planning if we don't have a plan cache entry, since a thread that has been waiting for a token could wake up (notify_one) because a different thread finished multiplanning. However, that's not a guarantee that we will now have an active plan cache entry- we should only throw if we believe we will hit the plan cache, otherwise we might as well let the query progress through multiplanning.

            Assignee:
            Unassigned
            Reporter:
            Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: