• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data corruption in data file

 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would you prevent it? What if JVM crashes and a thread fails to write record completely? How to handle that?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's not in the requirements, I wouldn't address it at all.
 
Clivant Yeo
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mike acre
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic