}
}
}
private void writeRecoveryData(ObjectOutputStream os, ClientRequest req) throws IOException {
PrependLengthOutputStream oos = checker.checksumWriterWithLength(os, tempBucketFactory);
DataOutputStream dos = new DataOutputStream(oos);
try {
req.getClientDetail(dos, checker);
dos.close();
oos = null;
} catch (Throwable e) {
Logger.error(this, "Unable to write recovery data for "+req+" : "+e, e);
System.err.println("Unable to write recovery data for "+req+" : "+e);
e.printStackTrace();
oos.abort();
} finally {
if(oos != null) oos.close();
}
}