You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2018/10/17 01:12:28 UTC

[mesos] branch master updated (2ef7506 -> 5b8f632)

This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git.


    from 2ef7506  Switched to `net::socketpair` in `ns::clone`.
     new 6c9801e  Added a test to ensure UUID size, variant, version.
     new 5b8f632  Documented that UUID is a 128 bits (or 16 bytes).

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 3rdparty/stout/tests/uuid_tests.cpp | 10 ++++++++++
 include/mesos/mesos.proto           |  2 +-
 include/mesos/v1/mesos.proto        |  2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)


[mesos] 01/02: Added a test to ensure UUID size, variant, version.

Posted by bm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 6c9801e924708f213f8ea3d509206cc54e1eca4e
Author: Benjamin Mahler <bm...@apache.org>
AuthorDate: Tue Oct 16 11:53:53 2018 -0700

    Added a test to ensure UUID size, variant, version.
    
    Review: https://reviews.apache.org/r/69052
---
 3rdparty/stout/tests/uuid_tests.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/3rdparty/stout/tests/uuid_tests.cpp b/3rdparty/stout/tests/uuid_tests.cpp
index 31cc016..a8d834f 100644
--- a/3rdparty/stout/tests/uuid_tests.cpp
+++ b/3rdparty/stout/tests/uuid_tests.cpp
@@ -57,6 +57,16 @@ TEST(UUIDTest, Test)
 }
 
 
+TEST(UUIDTest, Metadata)
+{
+  UUID uuid = UUID::random();
+
+  EXPECT_EQ(16u, uuid.size());
+  EXPECT_EQ(UUID::variant_rfc_4122, uuid.variant());
+  EXPECT_EQ(UUID::version_random_number_based, uuid.version());
+}
+
+
 TEST(UUIDTest, MalformedUUID)
 {
   EXPECT_SOME(UUID::fromBytes(UUID::random().toBytes()));


[mesos] 02/02: Documented that UUID is a 128 bits (or 16 bytes).

Posted by bm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 5b8f632e75d3c20be172c1678c04f77ae18cda1a
Author: Benjamin Mahler <bm...@apache.org>
AuthorDate: Tue Oct 16 11:54:25 2018 -0700

    Documented that UUID is a 128 bits (or 16 bytes).
    
    This came up when James DeFelice was asking about the number
    of bytes in this message. We should document it.
    
    Review: https://reviews.apache.org/r/69053
---
 include/mesos/mesos.proto    | 2 +-
 include/mesos/v1/mesos.proto | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 5a985fc..72966da 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2285,7 +2285,7 @@ message TaskResourceLimitation {
 
 
 /**
- * Describes a UUID.
+ * A 128 bit (16 byte) UUID, see RFC 4122.
  */
 message UUID {
   required bytes value = 1;
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index a5ebb78..c6c1dae 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2278,7 +2278,7 @@ message TaskResourceLimitation {
 
 
 /**
- * Describes a UUID.
+ * A 128 bit (16 byte) UUID, see RFC 4122.
  */
 message UUID {
   required bytes value = 1;