[MDEV-8981] [PATCH] main.analyze_format_json fails when test runs for an extended time Created: 2015-10-21 Updated: 2023-11-30 Resolved: 2015-11-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Tests |
| Affects Version/s: | 10.1.8 |
| Fix Version/s: | 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Brian Evans | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | analyze-stmt, patch | ||
| Environment: |
Gentoo |
||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.9-1, 10.1.9-2 | ||||||||
| Description |
|
It seems the replace syntax does not take into account exponential numbers.
|
| Comments |
| Comment by Elena Stepanova [ 2015-10-23 ] | |||||||||||||||||||||||||
|
Did you do anything special to achieve this? | |||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-10-23 ] | |||||||||||||||||||||||||
|
Exec_time_tracker (sql/sql_analyze_stmt.h) would indicate that its just overflowed a ulonglong (Xe12 puts it in the ballpark of the max ulonglong value).. my_timer_cycles relies on the asm instruction rdtsc which is just a 64 bit register. so maybe the stop_tracking function there needs to account for overflowing between calls. | |||||||||||||||||||||||||
| Comment by Brian Evans [ 2015-10-23 ] | |||||||||||||||||||||||||
|
@elenst No, I did not. It was simply run on a VM which did not necessarily have the fastest resources. | |||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-10-24 ] | |||||||||||||||||||||||||
|
Thanks grknight, seems you where lucky enough to see an event that may not happen that often. If you didnt' see it I guess we'd get occasional reports of billion second queries in JSON that really took microseconds. reworked patch and tested overflow maths. Looked at disassembly to verify it wasn't just a compiler optimisation. disassembly of main part of test program in commit message:
| |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-11-06 ] | |||||||||||||||||||||||||