Commit 281cf7e
committed
job-ingest: handle fluid_init() failure
Problem: if fluid_init() fails, job-ingest could issue
duplicate/invalid job IDs.
When fluid_init() fails, job-ingest logs an error but continues
on. Since the "fluid_generator" is just a 64-bit integer, the
fluids generated after that might be the same as those issued
on rank 0, and may start from an incorrect clock offset.
fluid_init() is expected to fail on rank > 16383.
It could also fail in the unlikely event that clock_gettime() fails.
When fluid_init() fails, abort the module.1 parent 3f139df commit 281cf7e
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
857 | 858 | | |
858 | 859 | | |
859 | 860 | | |
| |||
873 | 874 | | |
874 | 875 | | |
875 | 876 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | 877 | | |
880 | 878 | | |
881 | 879 | | |
| 880 | + | |
882 | 881 | | |
883 | 882 | | |
884 | 883 | | |
| |||
0 commit comments