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 "Julian Reschke (Jira)" <ji...@apache.org> on 2019/11/15 12:29:00 UTC

[jira] [Commented] (OAK-5787) BlobStore should be AutoCloseable

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

Julian Reschke commented on OAK-5787:
-------------------------------------

[~thomasm] - good point.

Proposed patch:  [^OAK-5787.diff] .

Feedback appreciated [~amitjain], [~mreutegg]

> BlobStore should be AutoCloseable
> ---------------------------------
>
>                 Key: OAK-5787
>                 URL: https://issues.apache.org/jira/browse/OAK-5787
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: blob
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>             Fix For: 1.20.0
>
>         Attachments: OAK-5787.diff
>
>
> {{DocumentNodeStore}} currently calls {{close()}} if the blob store instance implements {{Closeable}}.
> This has led to problems where wrapper implementations did not implement it, and thus the actual blob store instance wasn't properly shut down.
> Proposal: make {{BlobStore}} extend {{Closeable}} and get rid of all {{instanceof}} checks.
> [~thomasm] [~amitjain] - feedback appreciated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)