You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Abdullah Alamoudi (JIRA)" <ji...@apache.org> on 2016/02/25 16:30:18 UTC
[jira] [Commented] (ASTERIXDB-1262) Drop temporary dataset throws
NullPtrException when an unrelated feed adapter was set up before
[ https://issues.apache.org/jira/browse/ASTERIXDB-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167318#comment-15167318 ]
Abdullah Alamoudi commented on ASTERIXDB-1262:
----------------------------------------------
I am not sure which change fixed this bug but it is not there anymore.
> Drop temporary dataset throws NullPtrException when an unrelated feed adapter was set up before
> -----------------------------------------------------------------------------------------------
>
> Key: ASTERIXDB-1262
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1262
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: Feeds
> Reporter: Jianfeng Jia
> Assignee: Abdullah Alamoudi
>
> Hi,
> Here is the step to reproduce the problem:
> * ddl
> {code}
> drop dataverse test if exists;
> create dataverse test;
> use dataverse test;
> create type t1 as open{
> id: int64,
> name: string
> }
> create dataset ds1 (t1) primary key id;
> create feed fd2 using socket_adapter
> (
> ("sockets"="nc2:10001"),
> ("address-type"="nc"),
> ("type-name"="t1"),
> ("format"="adm"),
> ("duration"="1200")
> );
> set wait-for-completion-feed "false";
> connect feed fd2 to dataset ds1 using policy AdvancedFT_Discard;
> {code}
> * Create and drop an unrelated temporary dataset
> {code}
> create temporary dataset tmp_tweets(t1) primary key id;
> drop dataset tmp_tweets
> {code}
> Then the expection appears as below
> * Exceptions:
> {code}
> SEVERE: Job failed on account of:
> org.apache.hyracks.api.exceptions.HyracksDataException: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> org.apache.hyracks.api.exceptions.HyracksException: Job failed on account of:
> org.apache.hyracks.api.exceptions.HyracksDataException: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> at org.apache.hyracks.control.cc.job.JobRun.waitForCompletion(JobRun.java:211)
> at org.apache.hyracks.control.cc.work.WaitForJobCompletionWork$1.run(WaitForJobCompletionWork.java:48)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: org.apache.hyracks.api.exceptions.HyracksDataException: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> at org.apache.hyracks.control.common.utils.ExceptionUtils.setNodeIds(ExceptionUtils.java:45)
> at org.apache.hyracks.control.nc.Task.run(Task.java:315)
> ... 3 more
> Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.runInParallel(SuperActivityOperatorNodePushable.java:215)
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.initialize(SuperActivityOperatorNodePushable.java:83)
> at org.apache.hyracks.control.nc.Task.run(Task.java:258)
> ... 3 more
> Caused by: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.runInParallel(SuperActivityOperatorNodePushable.java:213)
> ... 5 more
> Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
> at org.apache.asterix.metadata.feeds.FeedMessageOperatorNodePushable.initialize(FeedMessageOperatorNodePushable.java:125)
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$initialize$0(SuperActivityOperatorNodePushable.java:83)
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable$1.call(SuperActivityOperatorNodePushable.java:204)
> at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable$1.call(SuperActivityOperatorNodePushable.java:201)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ... 3 more
> Caused by: java.lang.NullPointerException
> at org.apache.asterix.metadata.feeds.FeedMessageOperatorNodePushable.hanldeDisconnectFeedTypeMessage(FeedMessageOperatorNodePushable.java:259)
> at org.apache.asterix.metadata.feeds.FeedMessageOperatorNodePushable.initialize(FeedMessageOperatorNodePushable.java:95)
> ... 7 more
> {code}
> The drop statement will work fine if we didn't set up the feed adapter.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)