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

Network isolator should not fail when target state already exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 0.23.0
    • None
    • containerization
    • None
    • Twitter Mesos Q2 Sprint 6
    • 3

    Description

      Network isolator has multiple instances of the following pattern:

        Try<bool> something = ....::create();                                  
        if (something.isError()) {                                                   
          ++metrics.something_errors;                                      
          return Failure("Failed to create something ...")
        } else if (!icmpVethToEth0.get()) {                                               
          ++metrics.adding_veth_icmp_filters_already_exist;                               
          return Failure("Something already exists");
        }                                                                                 
      

      These failures have occurred in operation due to the failure to recover or delete an orphan, causing the slave to remain on line but unable to create new resources. We should convert the second failure message in this pattern to an information message since the final state of the system is the state that we requested.

      Attachments

        Issue Links

          Activity

            People

              pbrett Paul Brett
              pbrett Paul Brett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: