Commit cd97fbb
authored
DAOS-18355 chk: check leader waits all check engines before exited (#17315)
In old implementation, when the PS leader notifies the check leader
that related pool has been checked, the check leader will mark such
pool as 'done'. If all required pools have been marked as 'done',
then the check leader will exit. But at that time, the check engine
on related PS leader may not complete yet. There are something to
be processed (such as restart pool server) after the checking the
pool. The check engine will notify the check leader via CHK IV when
exit. But the check leader does not wait such notification. Under
such case, if someone tries to trigger new check instance, it will
create new IV namespace. That will cause some check engines and
the check leader to use different IV namespace, as to the CHK IV
logic cannot recognize the leadership correctly.
The patch adjust the leader exit logic: the leader scheduler needs
to wait all check engines' notification before exit.
Signed-off-by: Fan Yong <[email protected]>1 parent e9c8283 commit cd97fbb
File tree
4 files changed
+41
-41
lines changed- src
- chk
- tests/suite
4 files changed
+41
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
| 1984 | + | |
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
1176 | 1184 | | |
1177 | 1185 | | |
1178 | 1186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | | - | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | 272 | | |
269 | 273 | | |
| |||
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
330 | 327 | | |
| 328 | + | |
331 | 329 | | |
332 | | - | |
333 | 330 | | |
334 | 331 | | |
335 | 332 | | |
| |||
2284 | 2281 | | |
2285 | 2282 | | |
2286 | 2283 | | |
2287 | | - | |
| 2284 | + | |
| 2285 | + | |
2288 | 2286 | | |
2289 | 2287 | | |
2290 | 2288 | | |
| |||
2316 | 2314 | | |
2317 | 2315 | | |
2318 | 2316 | | |
2319 | | - | |
| 2317 | + | |
2320 | 2318 | | |
2321 | 2319 | | |
2322 | 2320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
3427 | 3427 | | |
3428 | 3428 | | |
3429 | 3429 | | |
3430 | | - | |
3431 | | - | |
3432 | | - | |
3433 | | - | |
3434 | | - | |
3435 | | - | |
3436 | 3430 | | |
3437 | 3431 | | |
3438 | 3432 | | |
| |||
0 commit comments