Commit 750658f
committed
fix(sandbox): skip wsrep post-start gate for non-Galera single sandboxes
wait_wsrep_after_start runs after every single-sandbox deploy, but it only
returns success when wsrep_ready=ON — which never happens on a plain
MySQL/MariaDB sandbox (no wsrep). It also polls $SBDIR/use (the sandbox
user) before post-grants provisions that user, so it hits "Access denied"
and loops for its full 60s timeout on every non-Galera deploy. The code
already (falsely) labelled it a "no-op on non-Galera".
Gate the script on actual wsrep usage (a wsrep option in MyCnfOptions or a
wsrep arg in StartArgs), so it runs only for Galera/PXC nodes where it
matters. Plain MySQL/MariaDB single deploys no longer pay the 60s delay.
- add sandboxUsesWsrep(SandboxDef) helper
- gate the concurrent execList append and the non-concurrent RunCmd
- TestSandboxUsesWsrep covers wsrep_provider / wsrep_cluster_address /
wsrep-on, --wsrep-new-cluster, and negative (plain mysql/mariadb) cases1 parent 9529d05 commit 750658f
2 files changed
Lines changed: 59 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
350 | 371 | | |
351 | 372 | | |
352 | 373 | | |
| |||
1058 | 1079 | | |
1059 | 1080 | | |
1060 | 1081 | | |
1061 | | - | |
1062 | 1082 | | |
1063 | 1083 | | |
1064 | 1084 | | |
1065 | 1085 | | |
1066 | | - | |
1067 | 1086 | | |
1068 | 1087 | | |
1069 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1070 | 1093 | | |
1071 | 1094 | | |
1072 | 1095 | | |
| |||
1084 | 1107 | | |
1085 | 1108 | | |
1086 | 1109 | | |
1087 | | - | |
1088 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1089 | 1114 | | |
1090 | 1115 | | |
1091 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
0 commit comments