mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qian Zhang <>
Subject Re: Review Request 72516: Erased `Info` struct before unmouting volumes in Docker volume isolator.
Date Tue, 26 May 2020 01:41:53 GMT

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

(Updated May 26, 2020, 9:41 a.m.)

Review request for mesos, Andrei Budnik and Greg Mann.


Updated the comments a bit.

Bugs: MESOS-10126

Repository: mesos


Currently when `DockerVolumeIsolatorProcess::cleanup()` is called, we will
unmount the volume first, and if the unmount operation fails we will NOT
erase the container's `Info` struct from `infos`. This is problematic
because the remaining `Info` in `infos` will cause the reference count of
the volume is greater than 0, but actually the volume is not being used by
any containers. That means we may never get a chance to unmount this volume
on this agent, furthermore if it is an EBS volume, it cannot be used by any
tasks launched on any other agents since a EBS volume can only be attached
to one node at a time. The only workaround would manually unmount the volume.

So in this patch `DockerVolumeIsolatorProcess::cleanup()` is updated to erase
container's `Info` struct before unmounting volumes.

Diffs (updated)

  src/slave/containerizer/mesos/isolators/docker/volume/isolator.cpp c547696f50a4df9cce4ee9078b5fe90b93fd91d2





Qian Zhang

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