impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Robinson (Code Review)" <>
Subject [Impala-CR](cdh5-trunk) IMPALA-3114: Add a pause monitor for impala processes.
Date Fri, 04 Mar 2016 23:19:04 GMT
Henry Robinson has posted comments on this change.

Change subject: IMPALA-3114: Add a pause monitor for impala processes.

Patch Set 2:

File be/src/common/

Line 17: #include <boost/thread/thread.hpp>
please don't use boost::thread directly
File be/src/util/

Line 25:   monitor_thread_.reset(new boost::thread(&PauseMonitor::WorkLoop, this));
Please use our Thread API instead of boost::thread.

Line 30:   monitor_thread_->join();
Let's not join (or do any work) in the destructor. Why not just fail fast?

Line 34:   MonotonicStopWatch sw;
just use MonotonicMillis() to measure time, and avoid the problem of having to convert to

Line 35:   uint64_t extra_sleep_time;
move this inside the loop
File be/src/util/pause-monitor.h:

Line 28: class PauseMonitor {
I don't think you need a class for this. InitCommonRuntime() can start a thread running WorkLoop()

Line 39: milli

Line 46: /// Runs as long as stop is set to false.
       :    bool stop;
I don't think you need this coordination. Why wouldn't the pause monitor just run forever?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I04eca63c0c44fa8f1b78833080acdc2176372263
Gerrit-PatchSet: 2
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Bharath Vissapragada <>
Gerrit-Reviewer: Bharath Vissapragada <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Huaisi Xu <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message