File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data corruption in data file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Data corruption in data file" Watch "Data corruption in data file" New topic

Data corruption in data file

Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
How would you prevent it? What if JVM crashes and a thread fails to write record completely? How to handle that?

Anton Golovin ( SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
If it's not in the requirements, I wouldn't address it at all.

Clivant Yeo
Ranch Hand

Joined: May 22, 2004
Posts: 124
I guess the probabilty of the JVM crashing while writing the Data file is very unlightly, you must be very unlucky to have encountered that.

For safety precaution, I guess that's why people do backups, I think you have to assume that the CSR don't take care of backups, it's up to the job of the administrator.

Just my two cents of opinion

Clivant Yeo
My Personal Website
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
It is taken care of by the fact you validate (or should validate) the data file stringently and don't allow the use of any file that fails.

I agree. Here's the link:
subject: Data corruption in data file
It's not a secret anymore!