[
https://issues.apache.org/jira/browse/ASTERIXDB-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209940#comment-16209940
]
ASF subversion and git services commented on ASTERIXDB-2135:
------------------------------------------------------------
Commit 89e6a93277205a9dbc76c18e249919a745d224d2 in asterixdb's branch
refs/heads/master from [~mhubail]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=89e6a93 ]
[ASTERIXDB-2135][IDX] Prevent NPE in LSMBTreePointSearchCursor
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- Prevent NPE on LSMBTreePointSearchCursor.close
Change-Id: I062c1200d9c5a1a574a1ccdb32be0ac011406d92
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2081
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Ian Maxon <[email protected]>
> NPE in LSMBTreePointSearchCursor on Failure
> -------------------------------------------
>
> Key: ASTERIXDB-2135
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2135
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: IDX - Indexes
> Reporter: Murtadha Hubail
> Assignee: Murtadha Hubail
>
> If a failure happens before LSMBTreePointSearchCursor.hasNext is called to
> initialize the search cursor, LSMBTreePointSearchCursor.close is called as
> part of the pipeline failure and leads to NPE.
> Stacktrace:
> {code:java}
> Caused by: java.lang.NullPointerException at
> org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTreePointSearchCursor.close(LSMBTreePointSearchCursor.java:218)
> at
> org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTreeSearchCursor.close(LSMBTreeSearchCursor.java:77)
> at
> org.apache.asterix.runtime.operators.LSMPrimaryUpsertOperatorNodePushable.close(LSMPrimaryUpsertOperatorNodePushable.java:360)
> at
> org.apache.asterix.external.feed.dataflow.SyncFeedRuntimeInputHandler.close(SyncFeedRuntimeInputHandler.java:64)
> at
> org.apache.asterix.external.operators.FeedMetaStoreNodePushable.close(FeedMetaStoreNodePushable.java:155)
> at org.apache.hyracks.control.nc.Task.pushFrames(Task.java:409)
> at org.apache.hyracks.control.nc.Task.run(Task.java:323)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)