Commit ec40d4e
committed
Adds support for Foreign keys table in Pstress
https://perconadev.atlassian.net/browse/PSTRESS-152
Introduced support for Foreign key tables in Pstress.
* The tables with foreign key references are suffixed with `_fk` while
creating the tables.
* These FK tables include `ifk_col` column referencing parent table's
`ipkey`.
* Example : When --fk-prob is 50 --tables 100 options are passed, there
is a 50% chance there will be a table tt_N_fk whose parent would be
tt_N.
* To fully test FK behaviour, use `--fk-prob=100 --pk-prob=100`
* The FK tables can be disabled with `--no-fk` option.
Fixed transaction behaviour:
* Ensured `START TRANSACTION` doesn't block other sessions by running
transactions independently.
Adjusted the default probabilities of some features:
* A new option called partition-prob is added which controls the number
of partition tables created and is set to 10% by default.
* The exisiting option ratio-normal-temp is replaced with a new option,
temporary-prob to control the number of temporary tables and is set to
10% by default.
* The exisiting option commit-rollback-ratio is replaced with a new option,
commit-prob, which controls the probability of executing commit and is
set to 95 by default.
* Decreased the probability of using SAVEPOINT in a transaction from 50%
to 10%.
* The option `primary-key-probability` is renamed to `--pk-prob` fpr clarity.
Thanks Rahul Malik for the contribution.
(github.com/Percona-QA/pull/92)1 parent e57d733 commit ec40d4e
4 files changed
+381
-115
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
| |||
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
244 | 262 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 263 | + | |
| 264 | + | |
250 | 265 | | |
251 | 266 | | |
252 | 267 | | |
| |||
270 | 285 | | |
271 | 286 | | |
272 | 287 | | |
273 | | - | |
| 288 | + | |
274 | 289 | | |
275 | 290 | | |
276 | 291 | | |
| |||
684 | 699 | | |
685 | 700 | | |
686 | 701 | | |
687 | | - | |
| 702 | + | |
688 | 703 | | |
689 | 704 | | |
690 | 705 | | |
| |||
714 | 729 | | |
715 | 730 | | |
716 | 731 | | |
717 | | - | |
| 732 | + | |
718 | 733 | | |
719 | | - | |
| 734 | + | |
720 | 735 | | |
721 | 736 | | |
722 | 737 | | |
723 | 738 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
733 | 746 | | |
734 | 747 | | |
735 | | - | |
736 | | - | |
| 748 | + | |
| 749 | + | |
737 | 750 | | |
738 | | - | |
| 751 | + | |
739 | 752 | | |
740 | 753 | | |
741 | 754 | | |
| |||
0 commit comments