/[Apache-SVN]
ViewVC logotype

Revision 920686


Jump to revision: Previous Next
Author: dreiss
Date: Tue Mar 9 05:20:17 2010 UTC (14 years, 8 months ago)
Changed paths: 2
Log Message:
cpp: Prevent TFileTransport from throwing uncaught exceptions

FilleTransport::writerThread throws exceptions. This function is run
inside the writer thread, so these exceptions are not caught. When these
exceptions happen, the system aborts.

The fix is to first eliminate all the throw commands inside this function. In
addition, add some error recovery logic into the code: whenever an IO error
happens, we enter into an error recovery mode. Go to sleep for a few seconds
then try to reopen the file.

Note: Currently, when errors happen, we drop events.

Changed paths

Path Details
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26