[MDEV-11722] main.join_cache fails in buildbot on very slow builders Created: 2017-01-04 Updated: 2017-01-05 Resolved: 2017-01-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.55, 10.0.29, 10.1.21, 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This part tests a fix for performance degradation |
| Comments |
| Comment by Elena Stepanova [ 2017-01-04 ] | ||||||||||||||||||||||||||||||
|
Time is measured for this query performed on empty tables:
After the fix If I add two more LEFT JOINs to the query, execution time for fast ones (with join_cache_level=0 before the fix, with both values on the fixed version) does not change noticeably, it's still around ~4000 microseconds; but for the slow query (join_cache_level=2 before the fix) it grows up to ~6500000 microseconds. So, the easy solution is to add this couple of LEFT JOINs and then increase the margin for the error, make it fail, let's say, if the query takes longer than 4 seconds. If there is no bug, it shouldn't matter, and it should help for slow builders to avoid false positives. | ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-01-05 ] | ||||||||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/f1ee011a6cbda1069a6ec9b5e2428451a64861fd |