-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajwerner/schemafeed leases rebase #45257
base: master
Are you sure you want to change the base?
Ajwerner/schemafeed leases rebase #45257
Commits on Feb 20, 2020
-
[DNM][WIP] client/leasemanager: create a package to build transaction…
… scoped leases This is a very WIP implementation of transaction scoped locks. The interface is garbage and not very considered. Nevertheless it seems to mostly work. The biggest problem I see so far is that at high concurrency there are cases where a lock can lay down all of the relevant intents and then still fail to commit. This happens because the TS cache information is lost due to a lease transfer before the txn record is layed down. Such a possibility is a big problem for the lease use cases which assume that an intent will be valid until the transaction expires. To some extent this problem makes sense given the transaction expiration isn't well defined before the txn record has been written. Release note: None
Configuration menu - View commit details
-
Copy full SHA for c952a2e - Browse repository at this point
Copy the full SHA c952a2eView commit details -
[DNM][WIP] client/leasemanager: additions for leases/advisory locks
- Txn.ForceHeartbeat() writes a transaction record. - Txn.ExpiryTimestamp() returns the current expiry timestamp. - TODOs for plumbing a special Intent that updates the ts cache when removed due to abort. Release note: None
Configuration menu - View commit details
-
Copy full SHA for c163808 - Browse repository at this point
Copy the full SHA c163808View commit details -
[DNM][WIP] client/leasemanager: additions for leases/advisory locks
More plumbing for special intent that updates ts cache. Remaining work is to somehow update the ts cache in cmd_resolve_intent.go and cmd_resolve_intent_range.go, Release note: None
Configuration menu - View commit details
-
Copy full SHA for bb2a203 - Browse repository at this point
Copy the full SHA bb2a203View commit details -
[DNM][WIP] client/leasemanager: additions for leases/advisory locks
Plumbing to update the ts cache when removing a "leasing intent". Release note: None
Configuration menu - View commit details
-
Copy full SHA for 41d73d0 - Browse repository at this point
Copy the full SHA 41d73d0View commit details -
Send a struct on success channel. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 3f52c22 - Browse repository at this point
Copy the full SHA 3f52c22View commit details -
sql: add new pg_locks system table
To be filled. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 2f67eb8 - Browse repository at this point
Copy the full SHA 2f67eb8View commit details -
sql: add new pgadvisory package
Adds a pgadvisory.Session object that uses KV-level API to implement txn- and session-scoped advisory locks. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 5f8205f - Browse repository at this point
Copy the full SHA 5f8205fView commit details -
sem/tree: add pg_advisory builtins
Release note: None
Configuration menu - View commit details
-
Copy full SHA for 4e95ee4 - Browse repository at this point
Copy the full SHA 4e95ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d2124b - Browse repository at this point
Copy the full SHA 0d2124bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8f08f5 - Browse repository at this point
Copy the full SHA f8f08f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 238db8f - Browse repository at this point
Copy the full SHA 238db8fView commit details -
storage: fix a nil pointer for aborted intents
Release note: None
Configuration menu - View commit details
-
Copy full SHA for d0e1408 - Browse repository at this point
Copy the full SHA d0e1408View commit details -
sql: use the actual LeaseManager
Also fix some bugs in pgadvisory.Session. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 6fe7755 - Browse repository at this point
Copy the full SHA 6fe7755View commit details -
schemafeed: add a lease-based schemafeed implementation
Release note: None
Configuration menu - View commit details
-
Copy full SHA for 0fc56c1 - Browse repository at this point
Copy the full SHA 0fc56c1View commit details -
sql: add support for pg_advisory_unlock_all
Also add useful information to all pg_advisory builtins. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 6994d39 - Browse repository at this point
Copy the full SHA 6994d39View commit details -
sql/pgadvisory: fix behavior in case when user txn's epoch changes
Release note: None
Configuration menu - View commit details
-
Copy full SHA for 62ff6bb - Browse repository at this point
Copy the full SHA 62ff6bbView commit details