mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Budnik <>
Subject Review Request 69684: Fixed the FD leak if containerizer::_launch() failed or discarded.
Date Mon, 07 Jan 2019 15:27:11 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Gilbert Song, Jie Yu, Qian Zhang, and Vinod Kone.

Bugs: MESOS-6632

Repository: mesos


For the period between IOSB server is up and container process exec,
if the containerizer launch returns failure or discarded, the FD used
for signaling from the container process to the IOSB finish redirect
will be leaked, which would cause the IOSB stuck at `io::redirect`
forever. It would block the containerizer from cleaning up this
container at IOSB.

This issue could be exposed if there are frequent check containers
launch on an agent with heavy loads.


  src/slave/containerizer/mesos/containerizer.cpp a5cf2da55c046c5c45e0c2ca3400f64de12de62b



Manual testing:

Add `return Failure("Test!");` to `IOSwitchboard::_prepare()`:

1) Compile without this patch applied
2) Run `src/mesos-tests --verbose --gtest_filter=ContentType/AgentAPITest.AttachContainerInputRepeat/0`
3) This test fails due to a hanging IOSB (15 seconds timeout) after trying to destroy IOSB
on the HTTP error "Test!"

1) Compile with this patch applied
2) Run `src/mesos-tests --verbose --gtest_filter=ContentType/AgentAPITest.AttachContainerInputRepeat/0`
3) This test fails due to the HTTP error "Test!" and terminates immediately (as expected)


Andrei Budnik

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message