This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close network store when underlying connection is closed
Summary: as in title. also look at the test plan Test Plan: Earlier: scribe-client running with a buffered store scribe-server running with a file store scribe-client's primary network store points to scribe-server step 1 with both scribe client and server running log a message. this populats the scribe-client's connpool step 2 bring down scribe server step 3 send another message in same category. scribe client goes into disconnected state. periodically it wakes up, goes to SENDING_BUFFER state and then back to DISCONNECTED state. This is because the primary store was never closed. this leads to unnecessary reading of the backup file [Thu May 27 11:20:41 2010] "[xyz] Changing state from <DISCONNECTED> to <SENDING_BUFFER>" [Thu May 27 11:20:41 2010] "[xyz] read <1> entries of <10> bytes from file </tmp/corr/xyz/xyz_00000>" Thrift: Thu May 27 11:20:41 2010 TSocket::open() error on socket (after poll) <Host: 127.0.0.1 Port: 1464>Connection refused [Thu May 27 11:20:41 2010] "failed to open connection to remote scribe server <127.0.0.1:1464> thrift error <socket open() error: Connection refused>" [Thu May 27 11:20:41 2010] "[xyz] choosing new retry interval <1> seconds" [Thu May 27 11:20:41 2010] "[xyz] Changing state from <SENDING_BUFFER> to <DISCONNECTED>" After the fix: In step 3 the scribe client keeps going from DISCONNECTED to DISCONNECTED Thrift: Thu May 27 11:21:38 2010 TSocket::open() error on socket (after poll) <Host: 127.0.0.1 Port: 1464>Connection refused [Thu May 27 11:21:38 2010] "failed to open connection to remote scribe server <127.0.0.1:1464> thrift error <socket open() error: Connection refused>" [Thu May 27 11:21:38 2010] "[xyz] choosing new retry interval <1> seconds" [Thu May 27 11:21:38 2010] "[xyz] Changing state from <DISCONNECTED> to <DISCONNECTED>" DiffCamp Revision: 118740 Reviewed By: groys CC: agiardullo, groys, scribe-dev@lists Tasks: Revert Plan: OK Blame Revision: 26334 git-svn-id: svn+ssh://tubbs/svnapps/fbomb/branches/scribe-os/fbcode/scribe@28771 2248de34-8caa-4a3c-bc55-5e52d9d7b73a
- Loading branch information
pkhemani
authored and
groys
committed
Jun 7, 2010
1 parent
47f6a21
commit 78abcf7
Showing
3 changed files
with
52 additions
and
56 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