Skip to content

Instantly share code, notes, and snippets.

@jzhou77
Last active July 11, 2019 23:59
Show Gist options
  • Save jzhou77/e6363551fd5a32f168fe6139cf501b0a to your computer and use it in GitHub Desktop.
Save jzhou77/e6363551fd5a32f168fe6139cf501b0a to your computer and use it in GitHub Desktop.
FDB binding tests
# compile bindings
m bindings|fdb_c|fdb_python|fdb_flow|fdb_flow_tester
fdbserver -p 127.0.0.1:4504 -C fdb/test.cluster
# install new C binding library, or use packages
sudo cp /media/psf/Home/fdb/foundationdb/lib/libfdb_c.so /usr/lib/libfdb_c.so
sudo dpkg -i /media/psf/Home/fdb/foundationdb/packages/foundationdb-clients_6.2.0-0INTERNAL_amd64.deb
sudo dpkg -i /media/psf/Home/fdb/foundationdb/packages/foundationdb-server_6.2.0-0INTERNAL_amd64.deb
python bindingtester.py flow --test-name api --compare python --num-ops 1000 --logging-level INFO --cluster-file ~/fdb/test.cluster --seed 1675112423
python bindingtester.py flow --test-name api --compare go --num-ops 1000 --logging-level INFO --cluster-file ~/fdb/test.cluster --seed 1147383315
python -u bindingtester.py python3 --test-name scripted --logging-level INFO --cluster-file ~/fdb/test.cluster
@jzhou77
Copy link
Author

jzhou77 commented Jul 11, 2019

Restarting test, run old binary and then run the new binary with --restarting flag:

fdbserver-6.0.3 -r simulation -f ./foundationdb/tests/restarting/CycleTestRestart-1.txt -s 535104944 -b off
fdbserver-new   -r simulation -f ./foundationdb/tests/restarting/CycleTestRestart-2.txt -s 535104945 -b off --restarting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment