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

Provide a means for libprocess users to exit while ensuring messages are flushed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • libprocess
    • None

    Description

      Currently after a send there is no way to ensure that the message is flushed on the socket before terminating. We work around this by inserting os::sleep calls (see MESOS-243, MESOS-4106).

      There are a number of approaches to this:

      (1) Return a Future from send that notifies when the message is flushed from the system.

      (2) Call process::finalize before exiting. This would require that process::finalize flushes all of the outstanding data on any active sockets, which may block.

      Regardless of the approach, there needs to be a timer if we want to guarantee termination.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bmahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: