[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abdullah Alamoudi closed ASTERIXDB-1262.
----------------------------------------

Temporary datasets don't exist

> 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: ING - Ingestion
>            Reporter: Jianfeng Jia
>            Assignee: Abdullah Alamoudi
>            Priority: Major
>
> 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
(v7.6.3#76005)

Reply via email to