You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Dominique Pfister (JIRA)" <ji...@apache.org> on 2007/03/01 15:16:50 UTC

[jira] Resolved: (JCR-773) Under heavy load, database journal may contain empty update records.

     [ https://issues.apache.org/jira/browse/JCR-773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominique Pfister resolved JCR-773.
-----------------------------------

    Resolution: Fixed

Problem identified: on some occasion, the temporary file's contents was not written to disk even after closing the FileOutputStream. Remedied by syncing on its file descriptor.

Introduced a performance optimization, using in-memory records as long as size stays under a certain limit.

Fixed in r513340.

> Under heavy load, database journal may contain empty update records.
> --------------------------------------------------------------------
>
>                 Key: JCR-773
>                 URL: https://issues.apache.org/jira/browse/JCR-773
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.2
>            Reporter: Dominique Pfister
>         Assigned To: Dominique Pfister
>
> In a clustering scenario with a database journal, empty records may be produced. A passive node will then throw the following exception during its synchronization: 
> 28.02.2007 08:34:11 *ERROR* ClusterNode: Unexpected error while syncing of journal: null (ClusterNode.java, line 260)
> java.lang.NullPointerException
> 	at java.io.FilterInputStream.close(Unknown Source)
> 	at org.apache.jackrabbit.core.journal.ReadRecord.close(ReadRecord.java:197)
> 	at org.apache.jackrabbit.core.journal.DatabaseRecordIterator.close(DatabaseRecordIterator.java:148)
> 	at org.apache.jackrabbit.core.journal.DatabaseRecordIterator.close(DatabaseRecordIterator.java:114)
> 	at org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:196)
> 	at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:165)
> 	at org.apache.jackrabbit.core.journal.ClusterNode.sync(ClusterNode.java:283)
> 	at org.apache.jackrabbit.core.journal.ClusterNode.run(ClusterNode.java:254)
> 	at java.lang.Thread.run(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.