Redis Router graceful stop (#116)

* prestop and hasparticipants in interface

* add prestop function to existing routers

* fakerouter prestop

* update protocol version

* read lock

* redis router graceful stop

* test fix

* force stop
This commit is contained in:
Mathew Kamkar
2021-09-15 13:07:44 -07:00
committed by GitHub
parent 20d0c0ca43
commit 700a879c0b
18 changed files with 56 additions and 18 deletions
+2
View File
@@ -782,6 +782,8 @@ func (fake *FakeRouter) Stop() {
}
}
func (fake *FakeRouter) PreStop() {}
func (fake *FakeRouter) StopCallCount() int {
fake.stopMutex.RLock()
defer fake.stopMutex.RUnlock()