Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmsc818ePublicF2021b
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Keleher
cmsc818ePublicF2021b
Commits
3f206c24
Commit
3f206c24
authored
3 years ago
by
Peter J. Keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
b16b78b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p4/README.md
+9
-9
9 additions, 9 deletions
p4/README.md
with
9 additions
and
9 deletions
p4/README.md
+
9
−
9
View file @
3f206c24
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment