[MDEV-12139] mysqltest: errors in source in a loop Created: 2017-02-27 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Tests |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sergei Golubchik | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
mysqltest only executes the source command on the first iteration of a loop, after that the sourced file is already in the q_lines cache, so there is no need to read it again. Alas, when ignoring source command, we cannot know what file caused the error.
|
| Comments |
| Comment by Sergei Golubchik [ 2017-02-27 ] | ||||||||||
|
I've attached the fix, but it don't work because of MDEV-12138. May be the whole caching logic needs to be rewritten, and then this fix will be very different of completely unnecessary. | ||||||||||
| Comment by Amol Holani [ 2017-03-24 ] | ||||||||||
|
Hi Sergei,
Also regarding the MDEV-12138, I found this :- A sourced file can use source to read other files,but the maximum nesting level is 16. Sorry for late response, I had mid term exams last week!! |