From: Shijin Kong Date: Mon, 9 Nov 2015 21:09:58 +0000 (-0800) Subject: change CHECK to LOG(ERROR) when pipe read error on NotificationQueue X-Git-Tag: deprecate-dynamic-initializer~268 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e56f93932aefa41711444fdcb72ba7dcc54fb836;p=folly.git change CHECK to LOG(ERROR) when pipe read error on NotificationQueue Summary: The check was originally added to track down cpu pinning issue. In reality the check did get triggered, so change to soft error to calm the crazy nag bot. what's wrong with you. We need to see the soft error log to find out what the error is. Reviewed By: mzlee Differential Revision: D2632752 fb-gh-sync-id: 87c11b186f97f0eb4a6c5ac13a1117b280198673 --- diff --git a/folly/io/async/NotificationQueue.h b/folly/io/async/NotificationQueue.h index 9eee132b..be53e495 100644 --- a/folly/io/async/NotificationQueue.h +++ b/folly/io/async/NotificationQueue.h @@ -511,7 +511,9 @@ class NotificationQueue { if (rc < 0) { // EAGAIN should pretty much be the only error we can ever get. // This means someone else already processed the only available message. - CHECK_EQ(errno, EAGAIN); + if (rc != EAGAIN) { + LOG(ERROR) << "non-EAGAIN error returned on pipe read: " << errno; + } return false; } assert(value == 1);