This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unblock read acks pump from inputhost
If the server is draining gracefully, then the server will send a DRAIN command. The DRAIN command used to simply stop the write pump and wait for the server to close the stream. Even though server successfully will close the stream after finishing the DRAIN, the readAcks pump will never see the EOF because we don't do a stream.Read() unless we have some messages inflight. This patch tries to solve that by waiting for a default of a minute and explicitly closing the connection. In addition this patch also adds some additional logs and metrics to make sure we can track retries and failures on publish.
- Loading branch information
Aravind Srinivasan
committed
Apr 5, 2017
1 parent
de07d3a
commit 98855f3
Showing
3 changed files
with
67 additions
and
14 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
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