Is there any conflict between NFS and calling getFD().sync()?
Posted
by Dr.Dredel
on Stack Overflow
See other posts from Stack Overflow
or by Dr.Dredel
Published on 2009-07-01T23:16:57Z
Indexed on
2010/04/08
0:03 UTC
Read the original article
Hit count: 216
My boss is worried that our NFS file system will not be happy with the jboss run java process calling getFD().sync on the files we are writing. We have noticed that frequently the time stamp on the created file is minutes (sometimes as many as 15 minutes) after the log claims the file was finished writing. My only guess is that the NFS is hanging on to the file in memory and not writing it till it feels like it. sync should solve that probelm, right?
I also noticed that there is never a close() called on the file. Wondering if that could have been the cause as well?
any thoughts appreciated.
© Stack Overflow or respective owner