[torqueusers] [PATCH] clarifiy toolong in pbs_sched (was: Whats the cause of toolong execv?)

Ronny T. Lampert telecaadmin at gmail.com
Wed Aug 1 02:52:14 MDT 2007


>> 07/28/2007 19:12:17;0002; pbs_sched;Svr;Log;Log opened
>> 07/28/2007 19:12:17;0002; pbs_sched;Svr;toolong;alarm call
>> 07/28/2007 19:12:17;0002; pbs_sched;Svr;Log;Log closed
>> 07/28/2007 19:12:17;0002; pbs_sched;Svr;toolong;restart dir /root object
>> pbs_sched
>> 07/28/2007 19:12:17;0001; pbs_sched;Svr;pbs_sched;No such file or
>> directory (2) in toolong, execv

With regards to the above:
Make the "toolong" more verbose and clear.

Please consider applying to trunk, the patch is against r1502 (current 
HEAD).

Cheers,
Ronny
-------------- next part --------------
Index: src/scheduler.cc/pbs_sched.c
===================================================================
--- src/scheduler.cc/pbs_sched.c	(revision 1502)
+++ src/scheduler.cc/pbs_sched.c	(working copy)
@@ -262,8 +262,8 @@
   struct	stat	sb;
   pid_t	cpid;
 
-	log_record(PBSEVENT_SYSTEM, PBS_EVENTCLASS_SERVER, id, "alarm call");
-	DBPRT(("alarm call\n"))
+	log_record(PBSEVENT_SYSTEM, PBS_EVENTCLASS_SERVER, id, "scheduling iteration took too long");
+	DBPRT(("scheduling iteration toolong\n"))
 
 	if (connector >= 0 && server_disconnect(connector))
 		log_err(errno, id, "server_disconnect");
@@ -285,7 +285,7 @@
 			log_err(errno, id, log_buffer);
 		}
 
-		sprintf(log_buffer, "restart dir %s object %s",
+		sprintf(log_buffer, "restarting, dir %s, object %s",
 			oldpath, glob_argv[0]);
 		log_record(PBSEVENT_SYSTEM, PBS_EVENTCLASS_SERVER,
 			id, log_buffer);


More information about the torqueusers mailing list