Created
June 15, 2012 20:47
-
-
Save evanmcc/2938621 to your computer and use it in GitHub Desktop.
repro the lingering tombstone issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this works on my machine, against a local devrel cluster backed by elevedb | |
check afterwards with: | |
curl localhost:8091/buckets/baz/keys?keys=stream | |
keys seem to be durable until one does a get on them, then they vanish. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
I=0 | |
while [ $I -lt 20000 ]; do | |
curl -X POST http://localhost:8091/riak/baz/$I -H "content-type: text/plain" -d "adljndflkjnadflkjnasdflkjnasdfasdfjnaksdflkn" & | |
I=$(($I + 1)) | |
curl -X POST http://localhost:8092/riak/baz/$I -H "content-type: text/plain" -d "adljndflkjnadflkjnasdflkjnasdfasdfjnaksdflkn" & | |
I=$(($I + 1)) | |
curl -X POST http://localhost:8093/riak/baz/$I -H "content-type: text/plain" -d "adljndflkjnadflkjnasdflkjnasdfasdfjnaksdflkn" & | |
I=$(($I + 1)) | |
curl -X POST http://localhost:8094/riak/baz/$I -H "content-type: text/plain" -d "adljndflkjnadflkjnasdflkjnasdfasdfjnaksdflkn" | |
I=$(($I + 1)) | |
echo $I | |
sleep .0001 | |
done | |
I=0 | |
while [ $I -lt 20000 ]; do | |
curl -X DELETE http://localhost:8091/riak/baz/$I & | |
I=$(($I + 1)) | |
curl -X DELETE http://localhost:8092/riak/baz/$I & | |
I=$(($I + 1)) | |
curl -X DELETE http://localhost:8093/riak/baz/$I & | |
I=$(($I + 1)) | |
curl -X DELETE http://localhost:8094/riak/baz/$I | |
I=$(($I + 1)) | |
echo $I | |
sleep .0001 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment