From 9f5525dd700bf8ed5b2178bb02ab32d4deaa98eb Mon Sep 17 00:00:00 2001 From: motodiary Date: Thu, 13 Jun 2024 09:38:41 +0800 Subject: [PATCH] fix sacct not showing job information --- ...ix-sacct-not-showing-job-information.patch | 25 +++++++++++++++++++ slurm.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0048-fix-sacct-not-showing-job-information.patch diff --git a/0048-fix-sacct-not-showing-job-information.patch b/0048-fix-sacct-not-showing-job-information.patch new file mode 100644 index 0000000..c3a2c44 --- /dev/null +++ b/0048-fix-sacct-not-showing-job-information.patch @@ -0,0 +1,25 @@ +From ed0b36c45a8dd8b22a0276bb0d7f8ad5a4bca615 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Thu, 13 Jun 2024 09:34:58 +0800 +Subject: [PATCH] fix sacct not showing job information + +--- + src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +index 2c0ad1e..867dde6 100755 +--- a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c ++++ b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +@@ -1237,7 +1237,7 @@ extern int create_cluster_tables(pgsql_conn_t *pgsql_conn, char *cluster_name) + { "kill_requid", "integer", "default -1|not null" }, + { "state_reason_prev", "integer", "not null" }, + { "mcs_label", "varchar", "default ''" }, +- { "mem_req", "bigint", "default 0|not null" }, ++ { "mem_req", "text", "default '0'|not null" }, + { "nodelist", "text", "" }, + { "nodes_alloc", "integer", "not null" }, + { "node_inx", "text", "" }, +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index e2fc681..0ef2ae6 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 50 +%define rel 51 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -63,6 +63,7 @@ Patch44: 0044-replace-goto-fini.patch Patch45: 0045-Remove-comments-in-concatenated-strings.patch Patch46: 0046-Add-empty-check-and-inline-in-set_autocommit_off.patch Patch47: 0047-rename-_get_result_by_index.patch +Patch48: 0048-fix-sacct-not-showing-job-information.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -755,6 +756,9 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog +* Thu Jun 13 2024 Xing Liu - 21.08.8-51 +- fix sacct not showing job information + * Wed Jun 12 2024 Xing Liu - 21.08.8-50 - rename _get_result_by_index -- Gitee