| Summary: | fix an abnormal display in a jobcomp txt log | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | menglong <meng_long_21> |
| Component: | Other | Assignee: | Tim Wickberg <tim> |
| Status: | OPEN --- | QA Contact: | |
| Severity: | C - Contributions | ||
| Priority: | --- | ||
| Version: | 20.02.0 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | -Other- | Alineos Sites: | --- |
| Atos/Eviden Sites: | --- | Confidential Site: | --- |
| Coreweave sites: | --- | Cray Sites: | --- |
| DS9 clusters: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Linux Distro: | --- |
| Machine Name: | CLE Version: | ||
| Version Fixed: | Target Release: | --- | |
| DevPrio: | --- | Emory-Cloud Sites: | --- |
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'; }