Skip to content

Instantly share code, notes, and snippets.

@evanmcc
Created June 15, 2012 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanmcc/2938621 to your computer and use it in GitHub Desktop.
Save evanmcc/2938621 to your computer and use it in GitHub Desktop.
repro the lingering tombstone issues
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.
#!/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