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

The order of isolators provided in '--isolation' flag is not preserved and instead sorted alphabetically

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2, 1.2.0, 1.3.0
    • Fix Version/s: 1.6.0
    • Component/s: containerization
    • Labels:

      Description

      According to documentation and comments in code the order of the entries in the --isolation flag should specify the ordering of the isolators. Specifically, the `create` and `prepare` calls for each isolator should run serially in the order in which they appear in the --isolation flag, while the `cleanup` call should be serialized in reverse order (with exception of filesystem isolator which is always first).
      But in fact, the isolators provided in '--isolation' flag are sorted alphabetically.
      That happens in this line of code. In this line use of 'set<string>' is done (apparently instead of list or vector) and set is a sorted container.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamespeach James Peach
                Reporter:
                cherny Michael Cherny
                Shepherd:
                Gilbert Song
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: