char *rest;
stat = dec_intJobStat(res2[4], &rest);
+// DEBUG catch
+if (!rest && stat) {
+ glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_ERROR, "Can't decode status for '%s' during dump", res2[3]);
+}
//nasty but not the only similar solution in code
switch (stat->pub.jobtype) {
case EDG_WLL_STAT_SIMPLE:
&& i < num_sub) {
if (!strcmp(INTSTAT_VERSION,out_stat[0])) {
js = dec_intJobStat(out_stat[1], &s_out);
+// DEBUG catch
+if (!s_out && js) {
+ glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_ERROR, "Can't decode status for '%s' during JobStatusServer/EDG_WLL_STAT_CHILDSTAT", out_stat[2]);
+}
if (s_out != NULL && js != NULL) {
stat->children_states[i] = *intJobStat_to_JobStat(js);
destroy_intJobStat_extension(js);
if (edg_wll_FetchRow(ctx,sh,1,NULL,&res) < 0) goto cleanup;
*stat = dec_intJobStat(res, &res_rest);
+// DEBUG catch
+if (!res_rest && stat) {
+ glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_ERROR, "Can't decode status for '%s' during LoadIntState()", jobid_md5);
+}
if (res_rest == NULL) {
edg_wll_SetError(ctx, EDG_WLL_ERROR_DB_CALL,
"error decoding DB intJobStatus");
// Ready to read the histogram from the record returned
rest = (char *)calloc(1,strlen(out));
ijs = dec_intJobStat(out, &rest);
+// DEBUG catch
+if (!rest && ijs) {
+ glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_ERROR, "Can't decode status for '%s' during GetSubjobHistogram()", jobid_md5);
+}
for (i=0;i<=EDG_WLL_NUMBER_OF_STATCODES;i++) hist[i] = intJobStat_to_JobStat(ijs)->children_hist[i];
}
}
if ( edg_wll_FetchRow(ctx, sh, 1, NULL, &res) < 0 ) goto cleanup;
istat = dec_intJobStat(res, &res_rest);
+// DEBUG catch
+if (!res_rest && istat) {
+ glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_ERROR, "Can't decode status for '%s' during QuerySequenceCodeServer()", jobid_md5);
+}
if ( res_rest && istat ) {
*seqcode = intJobStat_getLastSeqcode(istat);
intJobStat_nullLastSeqcode(istat);