-
I try to execute HammerDb in Autopilot Mode to build a Db2 test schema as follows. I've created following "Autopilot"-File. build_db2_schema.tcl File:
Then I start hammercli and in crashes with the "Error from thread"-Message.
If I'm executing the hammerdbcli in interactive mode and executing the commands manually everything works as expected. Do you have any ideas what could be the reason for the different behaviors between autopilot and interactive mode? Thanks a lot :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
The wait to complete command is now built in as "waittocomplete" so you don't have to code your routine to do this, there are some examples in this blog post here https://www.hammerdb.com/blog/uncategorized/hammerdb-cli-101/ - otherwise overall the script you are running looks OK. So it looks like the main thread "fell off" the bottom of the script and exited (after the first 5 seconds) which is why the thread doesn't exist message was reported. So try using the built-in waittocomplete first - this keeps the main thread busy while the Virtual User threads are running.