You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 08:59:57 UTC
svn commit: r1131984 - /incubator/mesos/trunk/src/messages.hpp
Author: benh
Date: Sun Jun 5 06:59:57 2011
New Revision: 1131984
URL: http://svn.apache.org/viewvc?rev=1131984&view=rev
Log:
Made a bad message not kill the process but instead just drop the message.
Modified:
incubator/mesos/trunk/src/messages.hpp
Modified: incubator/mesos/trunk/src/messages.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/messages.hpp?rev=1131984&r1=1131983&r2=1131984&view=diff
==============================================================================
--- incubator/mesos/trunk/src/messages.hpp (original)
+++ incubator/mesos/trunk/src/messages.hpp Sun Jun 5 06:59:57 2011
@@ -173,8 +173,8 @@ protected:
const char *s = ReliableProcess::body(&size);
const std::string data(s, size);
size_t index = data.find('|');
- CHECK(index != std::string::npos);
- if (MESOS_MESSAGING_VERSION != data.substr(0, index)) {
+ if (index == std::string::npos ||
+ MESOS_MESSAGING_VERSION != data.substr(0, index)) {
LOG(ERROR) << "Dropping message from " << from()
<< " with incorrect messaging version!";
if (!indefinite) {