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
3308117c
Commit
3308117c
authored
3 years ago
by
Peter J. Keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
0a537513
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
notes/hat.md
+14
-11
14 additions, 11 deletions
notes/hat.md
notes/hat1.png
+0
-0
0 additions, 0 deletions
notes/hat1.png
notes/hat2.png
+0
-0
0 additions, 0 deletions
notes/hat2.png
with
14 additions
and
11 deletions
notes/hat.md
+
14
−
11
View file @
3308117c
...
...
@@ -11,30 +11,29 @@ Correctness anomalies
-
1SR “one-copy serializability”
-
any read will return the most recent write to that data item, regardless of which replicas are read or written
-
doesn’t fix all problems
-
## The Anomalies
the immortal write -
*
the immortal write
*
-

-
tempting to leverage time travel to create an immortal blind write, which enables strightforward conflict resolution without violating the serializability guarantee
the stale read
*
the stale read
*
-

-
in single-server system little incentive to read older versions
-
in distributed system, most recent version costs latency
the causal reverse
*
the causal reverse
*
-

-
serialization order doesn’t respect potential causality of non-conflicting writes (to different data, for example)
SumUp
###
SumUp
-
all can occur in 1SR
-
none occur w/ strict serializability,
...
...
@@ -43,14 +42,13 @@ SumUp
# Highly Available
```
authors: Peter Bailis, Alan Fekete, Ali Ghodsi, Joseph M. Hellerstein, Ion Stoica
title: "HAT, not CAP: Towards Highly Available Transactions"
where: HotOS 2013
```
### Definitions
, in the context of Partitions:
### Definitions
-
**high availability:**
-
each user that can contact a non-failing server eventually receives
...
...
@@ -72,7 +70,7 @@ SumUp
```
Read should not ever return '1', and shouldn't return '3' if T2 aborts
"
**dirty writes**
"
-
"
**dirty writes**
"
A
*dirty write*
occurs when one transaction overwrites a value that has previously been
written by another still in-flight transaction. Why bad? Could violate consistency
guarantees. Assume invariant
*x == y*
:
...
...
@@ -100,7 +98,7 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
-
impl both w/ buffering
----
### Unachievable isolation levels
### Unachievable isolation levels
with partitions:
-
snapshot isolation,
-
read from consistent cut
-
commit only if items from writeset not committed by another T since snapshot
...
...
@@ -130,7 +128,7 @@ violation of consistency, such as "x == y""
T1: t = x; y = t
T2: t = y; x = t
```
Can happen w/ snapshot isolation.
Can happen w/ snapshot isolation
even w/o partitions
.
-
Serializability:
-
optimistic requires global validation
...
...
@@ -148,6 +146,11 @@ Can happen w/ snapshot isolation.
### HAT-compliant:


### Partial ordering

-
Blue is sticky available
- Red is unavailable
----
This diff is collapsed.
Click to expand it.
notes/hat1.png
0 → 100644
+
0
−
0
View file @
3308117c
181 KiB
This diff is collapsed.
Click to expand it.
notes/hat2.png
0 → 100644
+
0
−
0
View file @
3308117c
159 KiB
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