Commit c4e0a80
delete cgroup leaf dir only when use group-v2 (#16830)
delete cgroup leaf dir only when use group-v2.
There is no leaf directory in gpdb cgroup when use cgroup v1, so the
rmdir(leaf_path) will always return non-zero values, then the rmdir(path)
will be ignored.
When drop some resource groups, when corresponding cgroup dir cannot be
removed because the rmdire(path) is not executed, this behavior will
cause the failure of CI.
This commit add some logic to check resource group version in deleteDir,
when use group-v1, rmdir(leaf_path) will be ignored.1 parent 723ee28 commit c4e0a80
1 file changed
Lines changed: 36 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
474 | 476 | | |
475 | 477 | | |
| 478 | + | |
476 | 479 | | |
477 | 480 | | |
478 | | - | |
| 481 | + | |
| 482 | + | |
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| |||
494 | 498 | | |
495 | 499 | | |
496 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
497 | 505 | | |
498 | 506 | | |
499 | | - | |
| 507 | + | |
500 | 508 | | |
501 | 509 | | |
502 | | - | |
| 510 | + | |
503 | 511 | | |
504 | | - | |
505 | | - | |
506 | | - | |
| 512 | + | |
507 | 513 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
512 | 530 | | |
513 | 531 | | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
521 | 535 | | |
522 | | - | |
523 | | - | |
524 | 536 | | |
525 | | - | |
526 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
527 | 540 | | |
| 541 | + | |
528 | 542 | | |
529 | 543 | | |
530 | 544 | | |
| |||
0 commit comments