Issue Details (XML | Word | Printable)

Key: DIRSERVER-685
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Alex Karasulu
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Modification on an entry should always be flushed to the disk

Created: 30/Jul/06 10:46 AM   Updated: 27/Aug/06 06:08 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0, 1.0-RC4

Time Tracking:
Not Specified

Resolution Date: 27/Aug/06 06:08 PM


 Description  « Hide
When modifying an entry, we should always flush this entry to the disk.

The JDBM backend, AFAIK, only update its cache, and a thread flush those caches periodicaly. However, I may be wrong (and I hope to be wrong :)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny added a comment - 30/Jul/06 10:51 AM
In fact, there is an existing flag (synchOnWrite) which has been created to implement this behavious, but it's always set to false, so we never have synchornization on write.

This flag should be set to true by default, and the server.xml configuration may contains a way to modify this value to false (even if this seems obviously dangerous to do so ...)

Jörg Henne added a comment - 30/Jul/06 10:57 AM
Great to see you have a look at this problem. I've noticed that upon unclean shutdowns, updates are usually lost. A quick glance at the code indicated that the JDBM commit was only called during clean shutdown, so this issue was already on my list. Since even if there are not formal transactions, DS should try to ensure durability of updates. This means committing after each update by default, despite the performance hit it will bring about.

Alex Karasulu made changes - 27/Aug/06 06:07 PM
Field Original Value New Value
Assignee Alex Karasulu [ akarasulu ]
Alex Karasulu added a comment - 27/Aug/06 06:08 PM
Sync on write is now the default mechanism without the buffer cache. We should have all write based operations pushed directly to disk.

Alex Karasulu made changes - 27/Aug/06 06:08 PM
Resolution Fixed [ 1 ]
Fix Version/s 1.1.0 [ 12310790 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 1.0-RC4 [ 12311053 ]