Skip to content
Snippets Groups Projects
Commit 3f206c24 authored by Peter J. Keleher's avatar Peter J. Keleher
Browse files

auto

parent b16b78b3
No related branches found
No related tags found
No related merge requests found
...@@ -356,7 +356,7 @@ does in the videos: <a href="https://sedna.cs.umd.edu/818/movies/f19P4part1.mp4" ...@@ -356,7 +356,7 @@ does in the videos: <a href="https://sedna.cs.umd.edu/818/movies/f19P4part1.mp4"
round after receiving PREACCEPT replies. This and all remaining tests will round after receiving PREACCEPT replies. This and all remaining tests will
use thriftiness: use thriftiness:
CLIENT CLIENT (run simultaneously)
go run client.go -o 0,w,k,v go run client.go -o 0,w,k,v
go run client.go -o 3,w,k,v go run client.go -o 3,w,k,v
...@@ -491,17 +491,17 @@ run them with `go test`, and the output should be: ...@@ -491,17 +491,17 @@ run them with `go test`, and the output should be:
PASS PASS
ok 818f19/p4/solution/replica 0.006s ok 818f19/p4/solution/replica 0.006s
6) [5 pts] I will test your data store by writing into it, such as with `go run client.go,r,nice,55`, 6) [5 pts] I will test your data store by writing into one replica and
followed by reading from a different replica (`go run client.go,r,nice,`). I should see reading from a different replica. I should see
the new value of "nice" as follows: the new value of "nice" as follows:
./run.rb 3 -d 1 ./run.rb 3 -d 1
and and
client> go run client.go,w,nice,55 client> go run client.go -o 0,w,nice,55
wrote to 0: "nice" = "55" wrote to 0: "nice" = "55"
client> go run client.go,r,nice client> go run client.go -o 0,r,nice
read from 2: "nice" is "55" read from 2: "nice" is "55"
7) [5 pts] Same thing, but here the replica pauses on the commit, also delaying the read: 7) [5 pts] Same thing, but here the replica pauses on the commit, also delaying the read:
...@@ -510,9 +510,9 @@ the new value of "nice" as follows: ...@@ -510,9 +510,9 @@ the new value of "nice" as follows:
and and
client> go run client.go,w,nice,55 client> go run client.go -o 0,w,nice,55
wrote to 0: "nice" = "55" wrote to 0: "nice" = "55"
client> go run client.go,r,nice client> go run client.go -o 3,r,nice
read from 2: "nice" is "55" read from 2: "nice" is "55"
8) [5 pts] Same thing, but now the read is asynchronous, and returns immediately with the wrong value BEFORE the write completes: 8) [5 pts] Same thing, but now the read is asynchronous, and returns immediately with the wrong value BEFORE the write completes:
...@@ -521,9 +521,9 @@ the new value of "nice" as follows: ...@@ -521,9 +521,9 @@ the new value of "nice" as follows:
and and
client> go run client.go,w,nice,55 client> go run client.go -o 0,w,nice,55
wrote to 0: "nice" = "55" wrote to 0: "nice" = "55"
client> go run client.go,a,nice client> go run client.go -o 3,a,nice
read from 2: "nice" is "55" read from 2: "nice" is "55"
## Video ## Video
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment