You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2016/05/27 14:25:54 UTC

svn commit: r1745761 - /uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java

Author: cwiklik
Date: Fri May 27 14:25:54 2016
New Revision: 1745761

URL: http://svn.apache.org/viewvc?rev=1745761&view=rev
Log:
UIMA-4949 Filters out "Operation not permitted" error msg dumped by cgcreate even though cgroup is created successfully

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java?rev=1745761&r1=1745760&r2=1745761&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/CGroupsManager.java Fri May 27 14:25:54 2016
@@ -617,6 +617,15 @@ public class CGroupsManager {
 					String line;
 					agentLogger.info("launchCommand", null, "Consuming Process Streams");
 					while ((line = reader.readLine()) != null) {
+						// per team discussin 6/23/ dont need to log "Operation not permitted"
+						// which is logged by cgcreate erroneously. The cgroup is actually created
+						// but cgcreate still dumps this msg to stdout. If we log this, a user
+						// may get confused. If there is a legitimate problem a subsequent test
+						// for existence of cgroup will catch a missing cgroup and report it as 
+						// error.
+						if ( line.indexOf("Operation not permitted") > -1 ) {
+							continue;  // dont log if the above string is in the stdout stream
+						}
 						agentLogger.info("launchCommand", null, ">>>>" + line);
 						System.out.println(line);
 					}