Joe McDonnell created IMPALA-7463:
-------------------------------------

             Summary: Exhaustive centos6 build hits DCHECK in 
BufferPool::Client::WriteDirtyPagesAsync
                 Key: IMPALA-7463
                 URL: https://issues.apache.org/jira/browse/IMPALA-7463
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 3.1.0
            Reporter: Joe McDonnell


An exhaustive build on Centos6 hit this DCHECK:
{code:java}
void BufferPool::Client::WriteDirtyPagesAsync(int64_t min_bytes_to_write) {
  DCHECK_GE(min_bytes_to_write, 0) << DebugStringLocked();
  DCHECK_LE(min_bytes_to_write, dirty_unpinned_pages_.bytes()) << 
DebugStringLocked(); <<<< HERE
  if (file_group_ == NULL) {
    // Spilling disabled - there should be no unpinned pages to write.
    DCHECK_EQ(0, min_bytes_to_write);
    DCHECK_EQ(0, dirty_unpinned_pages_.bytes());
    return;
  }
  ...{code}
Here is the dumping:
{noformat}
F0820 01:40:27.604753 23473 buffer-pool.cc:645] Check failed: 
min_bytes_to_write <= dirty_unpinned_pages_.bytes() (8192 vs. 0) 
<BufferPool::Client> 0x18b08e1c0 name: HDFS_SCAN_NODE id=0 ptr=0xc54a6800 
write_status: buffers allocated 16384 num_pages: 0 pinned_bytes: 0 
dirty_unpinned_bytes: 0 in_flight_write_bytes: 0 reservation: 
{<ReservationTracker>: reservation_limit 9223372036854775807 reservation 16384 
used_reservation 16384 child_reservations 0 parent:
<ReservationTracker>: reservation_limit 9223372036854775807 reservation 16384 
used_reservation 0 child_reservations 16384 parent:
<ReservationTracker>: reservation_limit 10307921510 reservation 16384 
used_reservation 0 child_reservations 16384 parent:
<ReservationTracker>: reservation_limit 10952163328 reservation 42024960 
used_reservation 0 child_reservations 42024960 parent:
NULL}
0 pinned pages: 
0 dirty unpinned pages: 
0 in flight write pages:{noformat}
This is the stacktrace:
{noformat}
#0 0x0000003d1a8328e5 in raise () from /lib64/libc.so.6
#1 0x0000003d1a8340c5 in abort () from /lib64/libc.so.6
#2 0x00000000043dc954 in google::DumpStackTraceAndExit() ()
#3 0x00000000043d33ad in google::LogMessage::Fail() ()
#4 0x00000000043d4c52 in google::LogMessage::SendToLog() ()
#5 0x00000000043d2d87 in google::LogMessage::Flush() ()
#6 0x00000000043d634e in google::LogMessageFatal::~LogMessageFatal() ()
#7 0x000000000209f35e in impala::BufferPool::Client::WriteDirtyPagesAsync 
(this=0x18b08e1c0, min_bytes_to_write=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/runtime/bufferpool/buffer-pool.cc:645
#8 0x000000000209ee31 in impala::BufferPool::Client::CleanPages 
(this=0x18b08e1c0, client_lock=0x7f7827869190, len=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/runtime/bufferpool/buffer-pool.cc:625
#9 0x000000000209ec11 in impala::BufferPool::Client::DecreaseReservationTo 
(this=0x18b08e1c0, max_decrease=8192, target_bytes=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/runtime/bufferpool/buffer-pool.cc:609
#10 0x000000000209ba95 in 
impala::BufferPool::ClientHandle::DecreaseReservationTo (this=0xc54a6990, 
max_decrease=8192, target_bytes=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/runtime/bufferpool/buffer-pool.cc:319
#11 0x000000000211f8cb in 
impala::HdfsScanNode::ReturnReservationFromScannerThread (this=0xc54a6800, 
lock=..., bytes=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/exec/hdfs-scan-node.cc:233
#12 0x0000000002120d09 in impala::HdfsScanNode::ScannerThread (this=0xc54a6800, 
first_thread=false, scanner_thread_reservation=8192) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/exec/hdfs-scan-node.cc:433
#13 0x000000000211fb62 in impala::HdfsScanNode::<lambda()>::operator()(void) 
const (__closure=0x7f7827869b88) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/exec/hdfs-scan-node.cc:312
#14 0x000000000212200e in 
boost::detail::function::void_function_obj_invoker0<impala::HdfsScanNode::ThreadTokenAvailableCb(impala::ThreadResourcePool*)::<lambda()>,
 void>::invoke(boost::detail::function::function_buffer &) 
(function_obj_ptr=...) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/Impala-Toolchain/boost-1.57.0-p3/include/boost/function/function_template.hpp:153
#15 0x0000000001c4ad60 in boost::function0<void>::operator() 
(this=0x7f7827869b80) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/Impala-Toolchain/boost-1.57.0-p3/include/boost/function/function_template.hpp:767
#16 0x0000000002073e95 in impala::Thread::SuperviseThread(std::string const&, 
std::string const&, boost::function<void ()>, impala::ThreadDebugInfo const*, 
impala::Promise<long, (impala::PromiseMode)0>*) (name=..., category=..., 
functor=..., parent_thread_info=0x7f7828c6b830, thread_started=0x7f7828c6a5d0) 
at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/repos/Impala/be/src/util/thread.cc:359
#17 0x000000000207c1b5 in boost::_bi::list5<boost::_bi::value<std::string>, 
boost::_bi::value<std::string>, boost::_bi::value<boost::function<void ()> >, 
boost::_bi::value<impala::ThreadDebugInfo*>, 
boost::_bi::value<impala::Promise<long, (impala::PromiseMode)0>*> 
>::operator()<void (*)(std::string const&, std::string const&, 
boost::function<void ()>, impala::ThreadDebugInfo const*, impala::Promise<long, 
(impala::PromiseMode)0>*), boost::_bi::list0>(boost::_bi::type<void>, void 
(*&)(std::string const&, std::string const&, boost::function<void ()>, 
impala::ThreadDebugInfo const*, impala::Promise<long, 
(impala::PromiseMode)0>*), boost::_bi::list0&, int) (this=0x14b4c3c0, 
f=@0x14b4c3b8: 0x2073b2e <impala::Thread::SuperviseThread(std::string const&, 
std::string const&, boost::function<void ()>, impala::ThreadDebugInfo const*, 
impala::Promise<long, (impala::PromiseMode)0>*)>, a=...) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind.hpp:525
#18 0x000000000207c0d9 in boost::_bi::bind_t<void, void (*)(std::string const&, 
std::string const&, boost::function<void ()>, impala::ThreadDebugInfo const*, 
impala::Promise<long, (impala::PromiseMode)0>*), 
boost::_bi::list5<boost::_bi::value<std::string>, 
boost::_bi::value<std::string>, boost::_bi::value<boost::function<void ()> >, 
boost::_bi::value<impala::ThreadDebugInfo*>, 
boost::_bi::value<impala::Promise<long, (impala::PromiseMode)0>*> > 
>::operator()() (this=0x14b4c3b8) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/Impala-Toolchain/boost-1.57.0-p3/include/boost/bind/bind_template.hpp:20
#19 0x000000000207c09c in boost::detail::thread_data<boost::_bi::bind_t<void, 
void (*)(std::string const&, std::string const&, boost::function<void ()>, 
impala::ThreadDebugInfo const*, impala::Promise<long, 
(impala::PromiseMode)0>*), boost::_bi::list5<boost::_bi::value<std::string>, 
boost::_bi::value<std::string>, boost::_bi::value<boost::function<void ()> >, 
boost::_bi::value<impala::ThreadDebugInfo*>, 
boost::_bi::value<impala::Promise<long, (impala::PromiseMode)0>*> > > >::run() 
(this=0x14b4c200) at 
/data/jenkins/workspace/impala-asf-master-exhaustive-centos6/Impala-Toolchain/boost-1.57.0-p3/include/boost/thread/detail/thread.hpp:116
#20 0x00000000032fe9fa in thread_proxy ()
#21 0x0000003d1ac07851 in start_thread () from /lib64/libpthread.so.0
#22 0x0000003d1a8e894d in clone () from /lib64/libc.so.6{noformat}
This does not look specific to Centos6 at first glance. This has been seen once 
so far.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to