Ticket 10510 - fix an abnormal display in a jobcomp txt log
Summary: fix an abnormal display in a jobcomp txt log
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Other (show other tickets)
Version: 20.02.0
Hardware: Linux Linux
: C - Contributions
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2020-12-28 05:49 MST by menglong
Modified: 2020-12-28 05:49 MST (History)
0 users

See Also:
Site: -Other-
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description menglong 2020-12-28 05:49:56 MST
Hi, 
We occasionally find that if tot_size is greater than 1024(sizeof(job_rec)),two lines will be merged into one line in the jobcomp txt log.So we add this in slurm_jobcomp_log_record (jobcomp_filetxt.c):

snprintf(job_rec, sizeof(job_rec), JOB_FORMAT, xxx);
tot_size = strlen(job_rec);
----add this----
if (tot_size == (sizeof(job_rec) - 1 )){
        job_rec[sizeof(job_rec) - 2] = '\n';
}