From 3f206c2454c8f693a52db79eaf4cd9b8b0c282d0 Mon Sep 17 00:00:00 2001 From: "Peter J. Keleher" <keleher@cs.umd.edu> Date: Sat, 20 Nov 2021 11:10:15 -0500 Subject: [PATCH] auto --- p4/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p4/README.md b/p4/README.md index 533b652..4053f90 100644 --- a/p4/README.md +++ b/p4/README.md @@ -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 use thriftiness: - CLIENT + CLIENT (run simultaneously) go run client.go -o 0,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: PASS 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`, -followed by reading from a different replica (`go run client.go,r,nice,`). I should see +6) [5 pts] I will test your data store by writing into one replica and +reading from a different replica. I should see the new value of "nice" as follows: ./run.rb 3 -d 1 and - client> go run client.go,w,nice,55 + client> go run client.go -o 0,w,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" 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: and - client> go run client.go,w,nice,55 + client> go run client.go -o 0,w,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" 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: and - client> go run client.go,w,nice,55 + client> go run client.go -o 0,w,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" ## Video -- GitLab