mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Mann <>
Subject Re: Review Request 72354: Fixed libevent SSL socket shutdown race condition.
Date Mon, 13 Apr 2020 20:11:22 GMT

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

(Updated April 13, 2020, 8:11 p.m.)

Review request for mesos, Andrei Sekretenko and Benjamin Mahler.

Bugs: MESOS-10111

Repository: mesos

Description (updated)

This fixes an issue where the functions `shutdown()` and
`event_callback()` race to access the bufferevent held by
our libevent SSL socket implementation, leading to a
CHECK failure.

This race resulted in MESOS-10111, where multiple rapid
changes in ZK membership led to one master re-linking to
another multiple times in RECONNECT mode. This causes
`shutdown()` to be called on the existing socket while
it's attempting a connection, at which point a failure to
connect can produce the CHECK failure.


  3rdparty/libprocess/src/posix/libevent/libevent_ssl_socket.cpp dcb6d8e6c82005145c853afa9c24a61d7d0f04a9



This fix is tested in, though it's likely the test code
will not be merged since it involves unsightly modifications to the socket interface.


Greg Mann

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