You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2023/05/28 13:32:00 UTC

[jira] [Resolved] (IMPALA-11803) impalad hit DCHECK when running union on empty table with MT_DOP>1

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

Quanlong Huang resolved IMPALA-11803.
-------------------------------------
    Fix Version/s: Impala 4.3.0
       Resolution: Fixed

> impalad hit DCHECK when running union on empty table with MT_DOP>1
> ------------------------------------------------------------------
>
>                 Key: IMPALA-11803
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11803
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Quanlong Huang
>            Assignee: Pranav Yogi Lodha
>            Priority: Major
>             Fix For: Impala 4.3.0
>
>
> This is reported from a community user. When using the DEBUG build, impalad could hit DCHECK and crash when running union with empty table with MT_DOP>1.
> I can reproduce the issue by launching the impala cluster with only one node:
> {code:java}
> bin/start-impala-cluster.py -r -s 1
> {code}
> Then run the following queries
> {code:sql}
> create table empty_tbl (id int) stored as parquet;
> create table tbl (id int) stored as parquet;
> insert into tbl values (0), (1), (2);
> insert into tbl values (3);
> set mt_dop=2;
> select count(*) from (select * from empty_tbl union all select * from tbl) t;
> {code}
> The stacktrace in impalad.ERROR:
> {code:java}
> F1216 14:51:44.285214 24142 hdfs-scan-node-base.cc:352] b444e7823f021f02:5af2aa4700000000] Check failed: shared_state_.use_mt_scan_node_ || instance_ctx_pbs.size() == 1 Non MT scan node should only have a single instance.
> *** Check failure stack trace: *** 
>     @          0x379c53d  google::LogMessage::Fail()
>     @          0x379e474  google::LogMessage::SendToLog()
>     @          0x379bf1c  google::LogMessage::Flush()
>     @          0x379e999  google::LogMessageFatal::~LogMessageFatal()
>     @          0x197ddfd  impala::HdfsScanPlanNode::ProcessScanRangesAndInitSharedState()
>     @          0x197ef4f  impala::HdfsScanPlanNode::Init()
>     @          0x1961150  _ZN6impala8PlanNode16CreateTreeHelperEPNS_13FragmentStateERKSt6vectorINS_9TPlanNodeESaIS4_EEPS0_PiPS9_.localalias
>     @          0x1961082  _ZN6impala8PlanNode16CreateTreeHelperEPNS_13FragmentStateERKSt6vectorINS_9TPlanNodeESaIS4_EEPS0_PiPS9_.localalias
>     @          0x1961082  _ZN6impala8PlanNode16CreateTreeHelperEPNS_13FragmentStateERKSt6vectorINS_9TPlanNodeESaIS4_EEPS0_PiPS9_.localalias
>     @          0x1961205  impala::PlanNode::CreateTree()
>     @          0x13c56c2  impala::FragmentState::Init()
>     @          0x13c76b9  impala::FragmentState::CreateFragmentStateMap()
>     @          0x134492e  impala::QueryState::StartFInstances()
>     @          0x1335036  impala::QueryExecMgr::ExecuteQueryHelper()
>     @          0x1336100  boost::detail::function::void_function_obj_invoker0<>::invoke()
>     @          0x18c7018  impala::Thread::SuperviseThread()
>     @          0x18c7e21  boost::detail::thread_data<>::run()
>     @          0x239bb77  thread_proxy
>     @     0x7effc4fcf6db  start_thread
>     @     0x7effc1d6f61f  clone
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org