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

Avoid blocking `Future::get()` calls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • libprocess

    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

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

            Dates

              Created:
              Updated: