Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2567 KRPC milestone 1
  3. IMPALA-5106

KRPC DCHECK hit when closing DataStreamRecvr

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.9.0
    • Impala 2.9.0
    • Distributed Exec
    • None
    • ghx-label-8

    Description

      Looks like a RowBatch wasn't destroyed before the DataStreamRecvr was closed.

      Close() can arrive while a TransmitData() RPC is in flight, because of the asynchronous nature of the new RPC flow. And recent changes have made the locking in AddBatch() quite fine-grained. So the mem_tracker might be destroyed during AddBatch(), before the RowBatch is finished with. Looking at the code, it could also be torn down before the RowBatch is created, which would lead to an exception as well.

      F0320 18:11:23.188339  4263 mem-tracker.cc:194] Check failed: consumption_->current_value() == 0 (24544 vs. 0) DataStreamRecvr
          @          0x1755bab  impala::MemTracker::~MemTracker()
          @          0x1740cbc  boost::checked_delete<>()
          @          0x173ef55  boost::scoped_ptr<>::~scoped_ptr()
          @          0x173f43f  boost::scoped_ptr<>::reset()
          @          0x17aed5f  impala::DataStreamRecvr::Close()
          @          0x1ab0969  impala::ExchangeNode::Close()
          @          0x1e95d65  impala::PlanFragmentExecutor::Close()
          @          0x1e8dc83  impala::FragmentInstanceState::Exec()
          @          0x1e98e65  impala::QueryExecMgr::ExecFInstance()
          @          0x1e9bca2  boost::_mfi::mf1<>::operator()()
          @          0x1e9bb2b  boost::_bi::list2<>::operator()<>()
          @          0x1e9b65f  boost::_bi::bind_t<>::operator()()
      

      Attachments

        Activity

          People

            henryr Henry Robinson
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: