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

attempt to index global 'BSONNull' (a nil value) #2

Open
joshuacox opened this issue Nov 13, 2017 · 3 comments
Open

attempt to index global 'BSONNull' (a nil value) #2

joshuacox opened this issue Nov 13, 2017 · 3 comments

Comments

@joshuacox
Copy link

FATAL: `thread_run' function failed: oltp-mongo.lua:247: attempt to index global 'BSONNull' (a nil value)

This happens during the run step, I get through the preparation step just fine. I have a docker repo to test this out:

https://github.com/joshuacox/gymongonasium

make in that directory and it ought to build sysbench and mongorover from source and test it against the mongo container

@joshuacox
Copy link
Author

joshuacox commented Nov 13, 2017

update (as I've made the sysbench step dormant while I try out the python mongo-perf stuff):

docker run -d --name mymongodb mongo:3.4
docker run -it -e GYMONGO_PYTHON=0 -e GYMONGO_SYSBENCH=1 --link mymongodb:mongodb joshuacox/gymongonasium

or to build from scratch using the makefile make sysbench

experiment with your own sysbench command:

docker run -it \
-e GYMONGO_PYTHON=0 -e SLEEP=0 \
--link mongodb:mongodb \
joshuacox/gymongonasium \
sysbench oltp-mongo.lua help

But I still get the issue with the BSONNull when trying to 'run'

@gkoloventzos
Copy link

Hi,
Have you found any solution (except not running the sum_ranges that produces the error).

Thanks

@18981119465
Copy link

I had the same problem.
My solution: At the beginning of oltp-mongo.lua, add the following statement:
local BSONNull = require("mongorover.luaBSONObjects.BSONNull")

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