-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add RPC modifications to include the lock work #17697
Merged
Merged
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
16cd69d
temp: remove when real work is added
jrasell fa0543d
func: add acquier/release to apply rpc function
Juanadelacuesta a6bbaaf
Delete lock.go
Juanadelacuesta 8ad7bbd
func: add new rpc endpoint
Juanadelacuesta c8cbec7
func: add http wrapper for command agent
Juanadelacuesta a8c2aad
func: remove lock related item
Juanadelacuesta d5af7a0
fix: sync msg types
Juanadelacuesta f40bc7a
func: remove the lock key form the url
Juanadelacuesta a58e815
fix: fix the flow of the preapply function
Juanadelacuesta 3441ae6
remove raft message for renew lock
Juanadelacuesta 2b285eb
style: refactor and spell mistakes
Juanadelacuesta 3a46135
func: separate validation for lock acquier
Juanadelacuesta 582d67d
fix: update agent command for lock after rpc endpoint update from que…
Juanadelacuesta 4696bd0
func: add test for validate lock
Juanadelacuesta 11685ac
style: clean unsed code and update comments
Juanadelacuesta 7a6a091
func: remove raft message type for renew lock, not needed
Juanadelacuesta 94484c6
fix: update logic to distinguish upsert variable and lock operation o…
Juanadelacuesta 7bf5014
fix: adjust the look up for query params to only be done on put and p…
Juanadelacuesta f068f17
fix: move the rpc metrics up on the renew lock to include auth errors
Juanadelacuesta 90fb2a4
func: add acquire and release lock functions on fsm
Juanadelacuesta 439b77e
func: fix the query for missing lock to avoid nil points in case of a…
Juanadelacuesta c829e2b
func: add happy path test for acquire and release flows on non existi…
Juanadelacuesta 379d6ee
fix: solve rebase with rpc conflicts
Juanadelacuesta 2a63039
func: add testing for release lock
Juanadelacuesta f60991c
fix: remove debug file
Juanadelacuesta e09d32f
Update nomad/fsm.go
Juanadelacuesta 997f7dd
func: change the return when lock ID is wrong from error to conflict
Juanadelacuesta 5e29ff9
func: add lock ID verification for variable upserts
Juanadelacuesta e4353fd
fix: check for empty lock instead of empty lock ID on setCas to avoid…
Juanadelacuesta 1b36b06
fix: separate the table update for the lock release, the var update c…
Juanadelacuesta 6253296
func: move lock ID check to the inner most tx function, not the CAS w…
Juanadelacuesta 5c3b8a3
func: remove the lock ID check from the CAS delete
Juanadelacuesta 0d6d59a
func: allow for users to overide the variable data when locking, the …
Juanadelacuesta 1fb2643
fix: make acquire lock function somewhat idempotente
Juanadelacuesta 7747fd5
func: add timer operations to variable locks
Juanadelacuesta 070d489
style: remove redundant code
Juanadelacuesta 22c1fee
Add acquire and release lock functions on the state store (#17794)
Juanadelacuesta 103a8f4
func: merge the timer functions with the leader functions and add loc…
Juanadelacuesta d7e7149
fix: add a restriction for CAS and lock, only one at the time and avo…
Juanadelacuesta c471356
fix: add existing timer check for lock acquire
Juanadelacuesta e7277f1
func: add tests for the creation and renewal of the timers
Juanadelacuesta c3e10f3
fix: add path to renew lock http handler
Juanadelacuesta 83d9d7d
fix: avoif panics by reading path and namespace from req and not resp…
Juanadelacuesta 6440af0
func: add functional tests to lock
Juanadelacuesta c769d5b
fix: remove duplicated code after rebase
Juanadelacuesta 276b9f5
fix: remove the lock info from the correct return value on listing an…
Juanadelacuesta 8124801
fix: update test after making TimerNum public
Juanadelacuesta 950749a
func: only return values after the renew was successful, and add tests
Juanadelacuesta ef7cffe
style: typo
Juanadelacuesta 35b309a
fix: add empty lock when no lock is provided for a lock acquire to av…
Juanadelacuesta 8496b6d
fix: use lockID function instead of calling the lock ID directly to a…
Juanadelacuesta 6c0eab9
func: add tests for command agent lock actions
Juanadelacuesta dfd9507
Update nomad/variables_endpoint.go
Juanadelacuesta dfc61ad
Update nomad/variables_endpoint.go
Juanadelacuesta d46dd2a
fix: typo
Juanadelacuesta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For new tests we're trying to use
shoenig/test