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 "Timothee Maret (JIRA)" <ji...@apache.org> on 2016/10/04 20:09:21 UTC

[jira] [Commented] (OAK-4883) Missing BlobGarbageCollection MBean on standby instance

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

Timothee Maret commented on OAK-4883:
-------------------------------------

[~alexparvulescu], [~frm] debugging the code with a default primary instance (File nodestore, no custom blob store), it appears the reason there's no {{BlobGCMBean}} is due to the fact that

{code}
store.getBlobStore()
{code}

returns {{null}} and therefor, the check at [0] can't be satisfied which cause the {{BlobGCMBean}} not to be registered. This occurs with a standby instance as well. Looking at the code and the change at [1], it seems to me that the logic for the primary case has not changed and that the only way to have a BlobGCMBean registered is to have a custom blob store configured.

Before digging further, could you help me understand whether it is expected that the {{store.getBlobStore()}} may return null in some setups

[0] https://github.com/apache/jackrabbit-oak/blob/2b6c2f5340f3b6485dda5c493f6343d232c883e9/oak-segment/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService.java#L646
[1] https://github.com/tmaret/jackrabbit-oak/commit/982bc43374a4564726b8b77454c3803b691bac24

> Missing BlobGarbageCollection MBean on standby instance
> -------------------------------------------------------
>
>                 Key: OAK-4883
>                 URL: https://issues.apache.org/jira/browse/OAK-4883
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar, segmentmk
>            Reporter: Alex Parvulescu
>            Assignee: Timothee Maret
>              Labels: gc
>
> The {{BlobGarbageCollection}} MBean is no longer available on a standby instance, this affects non-shared datastore setups (on a shared datastore you'd only need to run blob gc on the primary).
> This change was introduced by OAK-4089 (and backported to 1.4 branch with OAK-4093).



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