mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Wu <>
Subject Re: Review Request 65541: WIP: Experimented with the MessageDifferencer.
Date Thu, 08 Feb 2018 01:36:27 GMT

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

(Updated Feb. 7, 2018, 5:36 p.m.)

Review request for mesos and Benjamin Mahler.


Added some consideration for the `Resources` object, still has some edge cases that I haven't
figured out how to work around yet (see a TODO).

Bugs: MESOS-2487

Repository: mesos


This is an attempt to use the MessageDifferencer class (introduced in 
protobuf 3.0) to replace our handwritten protobuf equality operators.

This patch currently:
  * Ignores style rules (mostly).
  * Has TODOs to deal with the Resources and Attributes classes,
    which have their own wrappers and may need to be special-cased.
  * Only deals with non-versioned protobufs at the moment.
  * Can be made faster by making the MessageDifferencer into a
    `static thread_local` object guarded by a Once.

Diffs (updated)

  include/mesos/type_utils.hpp af2b187b9b59552e4ba515ad640fd4419eaf5075 
  src/common/type_utils.cpp a4d5dcb4e4445e307356d9b0c16dd39f00f6a8e2 





Joseph Wu

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