Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FATAL: `thread_run' function failed" error received upon running oltp-mongo.lua test #1

Open
ksatchit opened this issue Oct 18, 2017 · 3 comments

Comments

@ksatchit
Copy link

Hello @alexey2k

Firstly, thank you for coming up with the sysbench-based benchmark for MongoDB. I am trying to run this test on a MongoDB replicaset (that is running as a kubernetes statefulset). Followed the instructions in the README.md, and was able to execute the "prepare" step successfully (confirmed by perform "show dbs" on the MongoDB primary instance). However, the "run" step fails with error :

FATAL: `thread_run' function failed: oltp-mongo.lua:222: BatchSize value must be non-negative, but received: -1

Could you please help me on this ?

Here are the environment details :

  • Test harness (Where the test is launched from) : Ubuntu 16.04 x64 VM
  • MongoDB version : 3.4.9
  • MongoDB container image : "mongo" official image from dockerhub
  • Running steps as a user with sudo permissions for package installation

Command outputs :

kart@Master:~/sysbench-mongodb-lua$ sysbench  oltp-mongo.lua --tables=10 --threads=10 --table-size=100 --mongodb-db=sbtest --mongodb-host=10.44.0.3 --mongodb-port=27017 prepare
sysbench 1.0.9 (using bundled LuaJIT 2.1.0-beta2)

Initializing worker threads...

Creating table 'sbtest10'...
Inserting 100 records into 'sbtest10'
:
Creating table 'sbtest7'...
Inserting 100 records into 'sbtest7'
:
Creating a secondary index on 'sbtest7'...

However, the run test fails with the following error :

kart@Master:~/sysbench-mongodb-lua$ sysbench  oltp-mongo.lua --tables=10 --threads=10 --table-size=100 --mongodb-db=sbtest --mongodb-host=10.44.0.3 --mongodb-port=27017 --time=120 run
sysbench 1.0.9 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 10
Initializing random number generator from current time

Initializing worker threads...

Threads started!

FATAL: `thread_run' function failed: oltp-mongo.lua:222: BatchSize value must be non-negative, but received: -1
@alexey2k
Copy link
Contributor

alexey2k commented Oct 19, 2017 via email

@drgnjoon
Copy link

still not work.. have any solutions?

@drgnjoon
Copy link

error fixed..

this repo is outdated version, so need to setup old version of mongo-c-driver.(1.2.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants