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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2014/03/24 13:52:42 UTC

[jira] [Commented] (OAK-1582) ClassCastException in MarkSweepGarbageCollector#init()

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

Thomas Mueller commented on OAK-1582:
-------------------------------------

With which other NodeStore do you want to use the MarkSweepGarbageCollector?

The BlobStore garbage collection currently can't use the NodeStore interface because it needs the following features that are only present in the DocumentNodeStore interface:

* DocumentNodeStore.getBlobStore (needs to return a GarbageCollectableBlobStore)
* DocumentNodeStore.getReferencedBlobsIterator

I don't think we assume each NodeStore implements those methods, but I guess we could add an new interface, maybe NodeStoreWithGarbageCollectableBlobStore (a long name, not sure how to best shorten it).


> ClassCastException in MarkSweepGarbageCollector#init()
> ------------------------------------------------------
>
>                 Key: OAK-1582
>                 URL: https://issues.apache.org/jira/browse/OAK-1582
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Thomas Mueller
>             Fix For: 0.20
>
>
> Initialising {{MarkSweepGarbageCollector}} with any other node store than {{DocumentNodeStore}} causes a {{ClassCastException}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)