Re: 448e82f9f0d: MDEV-35720 Add query_time to statistics

Hi, Monty, Only a couple of comments about the test case:
Eh, that's not how one is supposed to do it. I mean, it works, but the easier approach is let $s1=query_get_value(show status like "query_time", Value); or purely in SQL set @s1=(select variable_value from information_schema.global_status where variable_name='query_time');
1. you don't need eval here 2. I expect this test, like almost all other timing tests will be horribly unstable in buildbot and will be eventually disabled. No, I don't have a recipe for a stable timing test.
Regards, Sergei Chief Architect, MariaDB Server and security@mariadb.org

Hi! On Sun, Dec 29, 2024 at 1:52 PM Sergei Golubchik <serg@mariadb.org> wrote:
I use the above substring approach as this was used in some other tests. We should probably fix the other tests to use the simpler approach to not confuse other developers. I still hope that we can soon implement @@status.query_time as it will make things much simpler to use the status variables directly in expressions.
This comes from me first having $s1 in the above, but later replaced with @s1.
I do not expect the above to be stable as most of the test are >= of someting that is guaranteed to always be true. The only' unsafe' thing ius the < 10.00, but that can easily be increased if that is wrong. This is just there to ensure we do not get any totally ridiculous value for query_time. Thanks for the review, everything is now fixed (except the >= 10 test) Regards, Monty
participants (2)
-
Michael Widenius
-
Sergei Golubchik