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
1d101c02
Commit
1d101c02
authored
3 years ago
by
Peter J. Keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
0f4c073d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
notes/hat.md
+12
-18
12 additions, 18 deletions
notes/hat.md
with
12 additions
and
18 deletions
notes/hat.md
+
12
−
18
View file @
1d101c02
...
@@ -81,7 +81,7 @@ guarantees. Assume invariant *x == y*:
...
@@ -81,7 +81,7 @@ guarantees. Assume invariant *x == y*:
Both preserve consistency in isolation, but not w/ this schedule and dirty writes.
Both preserve consistency in isolation, but not w/ this schedule and dirty writes.
##
Isolation guarantee defin
itions
:
##
Achievable isolation levels with part
itions
"
**read uncommitted**
" (PL-1)
"
**read uncommitted**
" (PL-1)
-
writes to each obj totally ordered (prohibits dirty writes)
-
writes to each obj totally ordered (prohibits dirty writes)
...
@@ -100,12 +100,12 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
...
@@ -100,12 +100,12 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
-
**item cut isolation**
-
**item cut isolation**
-
multiple different values
-
multiple different values
-
implement by buffering reads
-
implement by buffering reads
-
**
predicate cut isolation
*
-
**predicate cut isolation*
*
-
cut over "SELECT ..WHERE....") (phantom anomalies)
-
cut over "SELECT ..WHERE....") (phantom anomalies)
-
implement by caching entire logical ranges
-
implement by caching entire logical ranges
----
----
##
#
Unachievable isolation levels with partitions
:
## Unachievable isolation levels with partitions
-
snapshot isolation,
-
snapshot isolation,
-
read from consistent cut
-
read from consistent cut
-
commit only if items from writeset not committed by another T since snapshot
-
commit only if items from writeset not committed by another T since snapshot
...
@@ -116,6 +116,10 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
...
@@ -116,6 +116,10 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
on entire set of results
on entire set of results
-
violated if lost writes because of locks not reaching across partition.
-
violated if lost writes because of locks not reaching across partition.
-
therefore not HAT (because can't prevent lost updates)
-
therefore not HAT (because can't prevent lost updates)
-
Serializability:
-
optimistic requires global validation
-
pessimistic requires global coord/locking
----
----
### Unachievable properties
### Unachievable properties
-
preventing lost updates
-
preventing lost updates
...
@@ -129,27 +133,17 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
...
@@ -129,27 +133,17 @@ Both preserve consistency in isolation, but not w/ this schedule and dirty write
*Clearly impossible to prevent in dist environment.*
*Clearly impossible to prevent in dist environment.*
-
preventing write skew. Write Skew generalizes LU to multiple keys. Possible problem is
-
preventing write skew.
violation of consistency, such as "x == y""
-
generalizes
*lost updates*
to multiple keys
-
problem is possible violation of
*consistency*
(different Tx effective
access distinct replicas)
-
initially X = 1, Y = 2, each transaction trying to make them identical.
```
```
T1: t = x; y = t
T1: t = x; y = t
T2: t = y; x = t
T2: t = y; x = t
```
```
Can happen w/ snapshot isolation even w/o partitions.
Can happen w/ snapshot isolation even w/o partitions.
-
Serializability:
-
optimistic requires global validation
-
pessimistic requires global coord/locking
-
Katura not buying sticky avail (definitional)
-
Nao - "really confusing" (yes)
-
Patrick/Andrew - causal only w/ sticky (client caching breaks lots of guarantees)
----
### HAT-compliant:
### HAT-compliant:
...
...
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