You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2016/11/02 06:32:41 UTC

[1/2] mesos git commit: Added MESOS-6527 to CHANGELOG for 0.28.3.

Repository: mesos
Updated Branches:
  refs/heads/0.28.x a429a3688 -> 4033b3708


Added MESOS-6527 to CHANGELOG for 0.28.3.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/94cdfd01
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/94cdfd01
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/94cdfd01

Branch: refs/heads/0.28.x
Commit: 94cdfd01cebdcc8c2ecc52dc9d402fa6191aad87
Parents: a429a36
Author: Anand Mazumdar <an...@apache.org>
Authored: Tue Nov 1 21:38:42 2016 -0700
Committer: Anand Mazumdar <an...@apache.org>
Committed: Tue Nov 1 23:29:19 2016 -0700

----------------------------------------------------------------------
 CHANGELOG | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/94cdfd01/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index c6730ae..fb18a12 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -27,6 +27,7 @@ All Issues:
   * [MESOS-6234] - Potential socket leak during Zookeeper network changes.
   * [MESOS-6246] - Libprocess links will not generate an ExitedEvent if the socket creation fails.
   * [MESOS-6299] - Master doesn't remove task from pending when it is invalid
+  * [MESOS-6527] - Memory leak in the libprocess request decoder.
 
 
 Release Notes - Mesos - Version 0.28.2
@@ -42,7 +43,7 @@ All Issues:
   * [MESOS-5312] - Env `MESOS_SANDBOX` is not set properly for command tasks that changes rootfs.
   * [MESOS-4885] - Unzip should force overwrite.
   * [MESOS-5449] - Memory leak in SchedulerProcess.declineOffer.
-  * [MESOS-5380] - Killing a queued task can cause the corresponding command executor to never terminate. 
+  * [MESOS-5380] - Killing a queued task can cause the corresponding command executor to never terminate.
 
 ** Improvement
   * [MESOS-5307] - Sandbox mounts should not be in the host mount namespace.


[2/2] mesos git commit: Fixed memory leak in request/response decoders.

Posted by an...@apache.org.
Fixed memory leak in request/response decoders.

The leak can happen in cases where a client disconnects while the
request/response is in progress.

Review: https://reviews.apache.org/r/53361/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4033b370
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4033b370
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4033b370

Branch: refs/heads/0.28.x
Commit: 4033b37087056c63bc9b90969288ad5a9fa7f4ff
Parents: 94cdfd0
Author: Anand Mazumdar <an...@apache.org>
Authored: Tue Nov 1 21:32:55 2016 -0700
Committer: Anand Mazumdar <an...@apache.org>
Committed: Tue Nov 1 23:30:06 2016 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/decoder.hpp | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/4033b370/3rdparty/libprocess/src/decoder.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/decoder.hpp b/3rdparty/libprocess/src/decoder.hpp
index a8aa509..034d2b0 100644
--- a/3rdparty/libprocess/src/decoder.hpp
+++ b/3rdparty/libprocess/src/decoder.hpp
@@ -63,6 +63,15 @@ public:
     parser.data = this;
   }
 
+  ~DataDecoder()
+  {
+    delete request;
+
+    foreach (http::Request* request, requests) {
+      delete request;
+    }
+  }
+
   std::deque<http::Request*> decode(const char* data, size_t length)
   {
     size_t parsed = http_parser_execute(&parser, &settings, data, length);
@@ -327,6 +336,15 @@ public:
     parser.data = this;
   }
 
+  ~ResponseDecoder()
+  {
+    delete response;
+
+    foreach (http::Response* response, responses) {
+      delete response;
+    }
+  }
+
   std::deque<http::Response*> decode(const char* data, size_t length)
   {
     size_t parsed = http_parser_execute(&parser, &settings, data, length);
@@ -542,6 +560,19 @@ public:
     parser.data = this;
   }
 
+  ~StreamingResponseDecoder()
+  {
+    delete response;
+
+    if (writer.isSome()) {
+      writer->fail("Decoder is being deleted");
+    }
+
+    foreach (http::Response* response, responses) {
+      delete response;
+    }
+  }
+
   std::deque<http::Response*> decode(const char* data, size_t length)
   {
     size_t parsed = http_parser_execute(&parser, &settings, data, length);