jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-4396) HttpStore.containsSegment throws SNFE instead of returning false for non existing segments
Date Tue, 01 Nov 2016 16:05:59 GMT

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

Michael Dürig commented on OAK-4396:
------------------------------------

Which would be a discussion on its own. Until there is no pressure on this issue, let's just
keep it open. 

> HttpStore.containsSegment throws SNFE instead of returning false for non existing segments
> ------------------------------------------------------------------------------------------
>
>                 Key: OAK-4396
>                 URL: https://issues.apache.org/jira/browse/OAK-4396
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Francesco Mari
>            Priority: Minor
>
> That method tries to check existence of a segment by checking the return value of {{readSegment}}
for {{null}}. However, this method never returns {{null}} but throws a {{SNFE}} for non existing
segments. 



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

Mime
View raw message