I tried calling those two methods right before calling "raf.close()" and neither helped. Also tried changing the SMB version of the Linux server from 2.1 to 3.0, and enabling "Asynchronous I/O" on the server. No luck.
RandomAccessFile appears to be the cause. I did what you suggested and created a 1MB file on the network share, and then used the RandomAccessFile class to edit a 1KB chunk in the middle of the file. It took several seconds for the date modified timestamp to update. It must have something to do with the way the Linux server handles such things because we didn't have this problem when we used a Windows server.
Yes, I used Java to update the plain text file (see code & output below). I wonder if Jackcess has any kind of caching system that could cause this? Are there any background threads that run after the database object is closed? I checked the database file's timestamp at the command line right after my sample code updates the database file, and it reflects what the Java code is reporting--it takes ~10 seconds to update just like the Java code. So that suggests the problem is at the operating system...
When Jackcess updates a row in the database, the file system does not update the Access file's "date modified" timestamp immediately for me. It takes around 10 seconds for the timestamp to update. This only happens to me when the Access file is hosted on a SMB network share (as opposed to the local hard drive). The server hosting the network share is a Linux-based NAS. The client computer is running Windows. The Access file used to be hosted on a Windows-based server, and I just started to experience...
When Jackcess updates a row in the database, the file system does not update the Access file's "date modified" timestamp immediately for me. It takes around 10 seconds for the timestamp to update. This only happens to me when the Access file is hosted on a SMB network share (as opposed to the local hard drive). The server hosting the network share is a Linux-based NAS. The client computer is running Windows. The Access file used to be hosted on a Windows-based server, and I just started to experience...
Thank you for the update. Good to hear that you figured it out. Please let me know...
Hello, Can you elaborate on how you changed the time of some instances? Can you provide...
Hello, To cancel or delete an existing event, create a new VEVENT component like...