-
Notifications
You must be signed in to change notification settings - Fork 21
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
Improve failover mechanism #386
base: master
Are you sure you want to change the base?
Commits on Nov 14, 2024
-
set log level of some messages to info to have more visibility of the…
… errors; improve log messages and code comments (NO LOGIC CHANGES)
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for ead7df2 - Browse repository at this point
Copy the full SHA ead7df2View commit details -
try refreshing lock TTL well before TTL expiration
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for c3c2435 - Browse repository at this point
Copy the full SHA c3c2435View commit details -
adjust the retry strategy for more sanity when trying to obtain the l…
…ock by a passive/undefined pod
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 72f31af - Browse repository at this point
Copy the full SHA 72f31afView commit details -
try immediate lock reacquisition if lock refresh failed
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 995a3fe - Browse repository at this point
Copy the full SHA 995a3feView commit details -
add retry backoff to locker.Obtain() to avoid a retry loop; rename va…
…riable
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for da7b3a3 - Browse repository at this point
Copy the full SHA da7b3a3View commit details -
add nil check before trying to refresh a lock
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for a8c6a30 - Browse repository at this point
Copy the full SHA a8c6a30View commit details -
stefan.rieckhof committed
Nov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 80ff4b2 - Browse repository at this point
Copy the full SHA 80ff4b2View commit details -
stefan.rieckhof committed
Nov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 8ecf3e0 - Browse repository at this point
Copy the full SHA 8ecf3e0View commit details -
improve backoff interval and comment
stefan.rieckhof committedNov 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 06c105a - Browse repository at this point
Copy the full SHA 06c105aView commit details
Commits on Nov 15, 2024
-
improve/add comments; implement safeguard when lock.TTL() returns an …
…error
stefan.rieckhof committedNov 15, 2024 Configuration menu - View commit details
-
Copy full SHA for 10aecd4 - Browse repository at this point
Copy the full SHA 10aecd4View commit details -
decrease log level for most logs to debug; enforce minimum refresh ti…
…me after lock acquisition
stefan.rieckhof committedNov 15, 2024 Configuration menu - View commit details
-
Copy full SHA for 3b13d0a - Browse repository at this point
Copy the full SHA 3b13d0aView commit details -
DEBUG: add Stefan to log messages for testing
stefan.rieckhof committedNov 15, 2024 Configuration menu - View commit details
-
Copy full SHA for a1eba4a - Browse repository at this point
Copy the full SHA a1eba4aView commit details -
replace *redislock.Client by an interface, that is, LockClient to all…
…ow for dependency injection also with a mock redis lock client
stefan.rieckhof committedNov 15, 2024 Configuration menu - View commit details
-
Copy full SHA for 4ba1382 - Browse repository at this point
Copy the full SHA 4ba1382View commit details -
create mocks for redislock.Client and redislock.Lock
stefan.rieckhof committedNov 15, 2024 Configuration menu - View commit details
-
Copy full SHA for a35d417 - Browse repository at this point
Copy the full SHA a35d417View commit details
Commits on Nov 17, 2024
-
remove m.Called() from Obtain()
stefan.rieckhof committedNov 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 75e6f63 - Browse repository at this point
Copy the full SHA 75e6f63View commit details
Commits on Nov 18, 2024
-
stefan.rieckhof committed
Nov 18, 2024 Configuration menu - View commit details
-
Copy full SHA for 419751c - Browse repository at this point
Copy the full SHA 419751cView commit details -
stefan.rieckhof committed
Nov 18, 2024 Configuration menu - View commit details
-
Copy full SHA for a033516 - Browse repository at this point
Copy the full SHA a033516View commit details
Commits on Nov 19, 2024
-
stefan.rieckhof committed
Nov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for d9b2a29 - Browse repository at this point
Copy the full SHA d9b2a29View commit details -
stefan.rieckhof committed
Nov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for 7eef210 - Browse repository at this point
Copy the full SHA 7eef210View commit details -
call lock.TTL() with a timeout context
stefan.rieckhof committedNov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for fc86408 - Browse repository at this point
Copy the full SHA fc86408View commit details -
pass redis client instead of redislock client to NewActivePassive()
stefan.rieckhof committedNov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for e2f8b1a - Browse repository at this point
Copy the full SHA e2f8b1aView commit details -
delete lock and redislock mocks
stefan.rieckhof committedNov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for ac90f64 - Browse repository at this point
Copy the full SHA ac90f64View commit details -
check for lock==nil before calling lock.TTL()
stefan.rieckhof committedNov 19, 2024 Configuration menu - View commit details
-
Copy full SHA for 7f0039e - Browse repository at this point
Copy the full SHA 7f0039eView commit details
Commits on Nov 20, 2024
-
do lock operations only if Redis is reachable
stefan.rieckhof committedNov 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 528e9e4 - Browse repository at this point
Copy the full SHA 528e9e4View commit details -
add check for lock key existence to prevent interface {} conversion e…
…rror when trying to get the TTL from the lock
stefan.rieckhof committedNov 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 333e931 - Browse repository at this point
Copy the full SHA 333e931View commit details -
recover from panic in lock.TTL() and become undefined in this case
stefan.rieckhof committedNov 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 20cf4bd - Browse repository at this point
Copy the full SHA 20cf4bdView commit details