-- Error recovery code for thrift logfile
authorAditya Agarwal <aditya@apache.org>
Wed, 24 Jan 2007 23:39:10 +0000 (23:39 +0000)
committerAditya Agarwal <aditya@apache.org>
Wed, 24 Jan 2007 23:39:10 +0000 (23:39 +0000)
commit68f08ee5f5986138105bb3906b086cd15df02026
tree9fadf43d0cc6017f7dda9b85ab4bfc695c688323
parentc425780847ea746a474f8c81c6e8cb350d1a4feb
-- Error recovery code for thrift logfile

Summary:
- perform some basic corruption checks:
   1) Event larger than chunk
   2) Event larger than specified max
   3) Event crossing chunk boundary etc.
- If error encountered, then try to perform some recovery

Reviewed By: Slee

Test Plan: Going to test now...need to check in because of compile issues

Notes:
- These checks take care of the case when there is a dirty read from the filesystem (which
  we have encountered with the netapps). The recovery involves trying to perform the read
  again from ths FS and if that fails skipping the chunk altogether.
  Keep in mind that this might only be useful for idempotent systems (e.g. search redolog).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664943 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TFileTransport.h