impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Casey Ching (Code Review)" <>
Subject [Impala-CR](cdh5-trunk) PREVIEW IMPALA-2686: Add breakpad crash handler to all daemons
Date Thu, 14 Apr 2016 08:24:14 GMT
Casey Ching has posted comments on this change.

Change subject: PREVIEW IMPALA-2686: Add breakpad crash handler to all daemons

Patch Set 5:

File be/src/common/

Line 70: DEFINE_string(minidump_path, "/tmp/minidumps", "Directory to write minidump files
to. "
Maybe add something about "impala" to the path.

Also it would be nice to have short description of what a minidump and why it is useful.
File be/src/common/

Line 17: #include <boost/filesystem.hpp>
Remove? I don't see where this is used.

Line 52: using namespace boost::filesystem;
Same here, not needed?

Line 144:     impala::CheckAndRemoveMinidumps(FLAGS_max_minidumps);
Maybe move this to a startup task instead of recurring? After the first call there should
only be something to remove if the process crashes right?
File be/src/util/

Line 67:     "??????\?\?-??\?\?-??\?\?-??????\?\?-????????.dmp";
Can you give an example of what this matches?

Line 72:     if (bf::is_regular_file(minidump_path)) {
This looks like an exception throwing signature. Looks like there are a couple others that
don't throw.

Line 75:       time_t last_written = bf::last_write_time(minidump_path);
Same with this signature. Maybe always use the error code verison? Otherwise there should
be some exception handling. From what I heard, Impala prefers not to avoid exceptions though.
Can you check any other functions too?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I7a37a38488716ffe34296f3490ae291bbb7228d6
Gerrit-PatchSet: 5
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Lars Volker <>
Gerrit-Reviewer: Casey Ching <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Silvius Rus <>
Gerrit-HasComments: Yes

View raw message