[infinispan-issues] [JBoss JIRA] Commented: (ISPN-979) FileCacheStore should use fsync() when writing to disk
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Fri Jun 10 05:02:59 EDT 2011
[ https://issues.jboss.org/browse/ISPN-979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607757#comment-12607757 ]
Galder Zamarreño commented on ISPN-979:
---------------------------------------
This could be one way of implementing it with minimal changes:
- Sync per write: This is what we have today, open an FileOutputStream, write + flush whenever we update a bucket.
- No sync: Wrap the FOS around a BufferedOutputStream and when the buffer gets filled it, let it do the flushing.
- Periodic sync: Still wrap a FOS around a BOS, but then, apart from letting it flush when the buffer fills up, we have a way to flush it periodically, probably with some scheduled executor.
> FileCacheStore should use fsync() when writing to disk
> ------------------------------------------------------
>
> Key: ISPN-979
> URL: https://issues.jboss.org/browse/ISPN-979
> Project: Infinispan
> Issue Type: Feature Request
> Components: Listeners
> Affects Versions: 4.2.1.CR1
> Reporter: Manik Surtani
> Assignee: Galder Zamarreño
> Fix For: 5.0.0.CR5, 5.0.0.FINAL
>
>
> This would be an optional flag, offering one of 3 modes (no sync, periodic sync - e.g., every second - and sync per write).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list