You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2016/06/30 11:57:10 UTC

[jira] [Commented] (OAK-4525) Unreferenced node records are not marked as root records in the segment

    [ https://issues.apache.org/jira/browse/OAK-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15356958#comment-15356958 ] 

Francesco Mari commented on OAK-4525:
-------------------------------------

This regression has been introduced by OAK-3348. When {{NodeStateWriter}} writes the stable ID of a node record, it calls {{SegmentBufferWriter#writeRecordId}} to serialise a record ID. As a side effect, this method removes the record ID passed as argument from the list of root record IDs maintained by the segment. The unwanted side effect can be avoided by introducing a method that serialises a record ID without changing the list of root record IDs.

> Unreferenced node records are not marked as root records in the segment
> -----------------------------------------------------------------------
>
>                 Key: OAK-4525
>                 URL: https://issues.apache.org/jira/browse/OAK-4525
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>             Fix For: Segment Tar 0.0.4
>
>
> When a new node record is written, if that record is not referenced by any other record in the segment, it should be marked as a root record in the segment header.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)