Repository: mesos Updated Branches: refs/heads/master 72c1d0672 -> b9e27f236
Added a 'UNKNOWN' field to the Update.State enumeration. Review: https://reviews.apache.org/r/59146/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b9e27f23 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b9e27f23 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b9e27f23 Branch: refs/heads/master Commit: b9e27f2360356198019130befba48ce8ad685ae2 Parents: 72c1d06 Author: Jan Schlicht <j...@mesosphere.io> Authored: Fri Aug 11 01:42:46 2017 +0200 Committer: Alexander Rukletsov <al...@apache.org> Committed: Fri Aug 11 01:42:46 2017 +0200 ---------------------------------------------------------------------- include/mesos/resource_provider/resource_provider.proto | 6 ++++++ include/mesos/v1/resource_provider/resource_provider.proto | 6 ++++++ 2 files changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/b9e27f23/include/mesos/resource_provider/resource_provider.proto ---------------------------------------------------------------------- diff --git a/include/mesos/resource_provider/resource_provider.proto b/include/mesos/resource_provider/resource_provider.proto index a8a27ed..498d848 100644 --- a/include/mesos/resource_provider/resource_provider.proto +++ b/include/mesos/resource_provider/resource_provider.proto @@ -74,6 +74,12 @@ message Call { // Notify the master about the status of an operation. message Update { enum State { + // This must be the first enum value in this list, to + // ensure that if 'state' is not set, the default value + // is UNKNOWN. This enables enum values to be added + // in a backwards-compatible way. See: MESOS-4997. + UNKNOWN = 0; + OK = 1; FAILED = 2; } http://git-wip-us.apache.org/repos/asf/mesos/blob/b9e27f23/include/mesos/v1/resource_provider/resource_provider.proto ---------------------------------------------------------------------- diff --git a/include/mesos/v1/resource_provider/resource_provider.proto b/include/mesos/v1/resource_provider/resource_provider.proto index 34bce75..59adbc4 100644 --- a/include/mesos/v1/resource_provider/resource_provider.proto +++ b/include/mesos/v1/resource_provider/resource_provider.proto @@ -74,6 +74,12 @@ message Call { // Notify the master about the status of an operation. message Update { enum State { + // This must be the first enum value in this list, to + // ensure that if 'state' is not set, the default value + // is UNKNOWN. This enables enum values to be added + // in a backwards-compatible way. See: MESOS-4997. + UNKNOWN = 0; + OK = 1; FAILED = 2; }