Ensure Exchange::getTargetConsumer correctly handles MaxKey

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.3, 8.2.10, 8.0.24, 7.0.35
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.3, v8.2, v8.0, v7.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Method uses std::upper_bound to find the first boundary after the input keystring.

      If the input is MaxKey, the returned iterator is end().

      auto it = std::upper_bound(_boundaries.begin(), _boundaries.end(), keyStr);
      invariant(it != _boundaries.end());
      

      This is not a failure, and the final consumer should be inclusive of MaxKey.

            Assignee:
            James Harrison
            Reporter:
            James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: