Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9369

Avoid blocking `Future::get()` calls

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libprocess
    • Labels:

      Description

      Future::get() does a wait if the future is still pending. If this is accidentally called in an actor, the actor will be blocked. We should avoid calling Future::get() in the code. The plan would be:

      1. Introduce Future::value(): crash if not READY
      2. Make Future::operator* and Future::operator-> akin to Future::value()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chhsia0 Chun-Hung Hsiao
              Shepherd:
              Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: