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

process::collect and process::await do not perform discard propagation.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.25.0
    • libprocess
    • None
    • Twitter Mesos Q3 Sprint 5
    • 3

    Description

      When aggregating futures with collect, one may discard the outer future:

      Promise<int> p1;
      Promise<string> p2;
      
      Future<int, string> collect = process::collect(p1.future(), p2.future());
      
      collect.discard();
      
      // collect will transition to DISCARDED
      
      // However, p{1,2}.future().hasDiscard() remains false
      // as there is no discard propagation!
      

      Discard requests should propagate down into the inner futures being collected.

      Attachments

        Activity

          People

            bmahler Benjamin Mahler
            bmahler Benjamin Mahler
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: