counter of failed queries #147
-
I'm testing hammerdb on SQL server using some SDS (Software Define Storage). Other question/option - is there a timeout period where hammerdb did not receive any feedback/IOs from the storage sub-system, but still continue to hold the query as running? (my thought is that maybe there's a parameter that control this and then, for example, only after 60 seconds of no IO interaction, which is very high, will hammerdb fail the query or the test). I'm running something like: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi,
So when set to false (the default) HammerDB will catch and detect the error and print a message but not stop executing, it will just go the next call. If you set RAISEERROR it will call an error which will print the message stop that particular virtual user executing and vustatus will show that it has failed, an example you can find in the driver script is below:
I would suggest in the first instance to set raise error to true and then it will be clear when a virtual user stops from an error. When the behaviour is clearer make sure you have enabled logging and set it to false and then you can count the errors in the logfile. HammerDB takes a scripted approach meaning it would be easy to modify the section above to count the bind/exec errors and the following fetch errors separately to record a count. However as above SQL Server or ODBC may deal with an error without reporting it to HammerDB. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply Steve. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
will log file only capture errors or any transaction? |
Beta Was this translation helpful? Give feedback.
-
The logfile captures anything that is printed with the "puts" command. There is an option to timestamp every entry. So you are very much in control to log as much or as little as you wish. eg comment out the line shown in the comment above and it won't appear in the log. Similarly you can add more details if you wish with more puts commands. |
Beta Was this translation helpful? Give feedback.
-
Closed no further update |
Beta Was this translation helpful? Give feedback.
The logfile captures anything that is printed with the "puts" command. There is an option to timestamp every entry. So you are very much in control to log as much or as little as you wish. eg comment out the line shown in the comment above and it won't appear in the log. Similarly you can add more details if you wish with more puts commands.