-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mist-api-connector: Recover etcd session when lease is lost (#90)
* mac: Recover etcd session logic * mac: Shutdown after 2 minutes unable to recover * mac: Create helper newEtcdSession * mac: Replace etcdSession while still with the lock * mac: s/ETCD/etcd/g It's not an acronym so I think it makes more sense for it be consistently lowercase. Actually just found out it stands for "/etc distributed" :mindblown: * mac: Stop background loop when app shutdown * Update internal/app/mistapiconnector/mistapiconnector_app.go Co-authored-by: Ivan Tivonenko <[email protected]> * Update internal/app/mistapiconnector/mistapiconnector_app.go Co-authored-by: Ivan Tivonenko <[email protected]> * Update internal/app/mistapiconnector/mistapiconnector_app.go Co-authored-by: Ivan Tivonenko <[email protected]> * mac: Sync etcd endpoints on startup * mac: Add timeout to etcd session creation * mac: Remove shutdown on unrecoverable etcd sess We better keep trying cause shutting down is not really an option in the end. * Revert "mac: Add timeout to etcd session creation" This reverts commit 0476527. * mac: Add log before/after timeout-less function * mac: Fix missing return after handling etcd error Bug probably came from the consul code that also didnt have it. Fixed it too. Co-authored-by: Ivan Tivonenko <[email protected]>
- Loading branch information
1 parent
cf59755
commit ee31a8e
Showing
1 changed file
with
118 additions
and
25 deletions.
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