You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Lars Volker (JIRA)" <ji...@apache.org> on 2017/09/21 22:51:02 UTC

[jira] [Resolved] (IMPALA-5817) test_breakpad.py shows unexpected extra breakpad dump

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

Lars Volker resolved IMPALA-5817.
---------------------------------
    Resolution: Cannot Reproduce

> test_breakpad.py shows unexpected extra breakpad dump
> -----------------------------------------------------
>
>                 Key: IMPALA-5817
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5817
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 2.10.0
>            Reporter: Joe McDonnell
>              Labels: broken-build
>
> This issue is split off of IMPALA-5809, as it appears to be a distinct symptom. This was seen in an exhaustive build. Based on analysis, there are two breakpad dumps for the same impalad, even though we only invoke a signal once. This has only been seen once.
> {code:}
> 04:46:40 _____________________ TestBreakpad.test_minidump_creation ______________________
> 04:46:40 
> 04:46:40 self = <test_breakpad.TestBreakpad object at 0x54399d0>
> 04:46:40 
> 04:46:40     @pytest.mark.execute_serially
> 04:46:40     def test_minidump_creation(self):
> 04:46:40       """Check that when a daemon crashes, it writes a minidump file."""
> 04:46:40       assert self.count_all_minidumps() == 0
> 04:46:40       self.start_cluster()
> 04:46:40       assert self.count_all_minidumps() == 0
> 04:46:40       cluster_size = self.get_num_processes('impalad')
> 04:46:40       self.kill_cluster(SIGSEGV)
> 04:46:40 >     self.assert_num_minidumps_for_all_daemons(cluster_size)
> 04:46:40 
> 04:46:40 custom_cluster/test_breakpad.py:163: 
> 04:46:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 04:46:40 custom_cluster/test_breakpad.py:144: in assert_num_minidumps_for_all_daemons
> 04:46:40     self.assert_num_logfile_entries(1)
> 04:46:40 custom_cluster/test_breakpad.py:151: in assert_num_logfile_entries
> 04:46:40     expected_count=expected_count)
> 04:46:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 04:46:40 
> 04:46:40 self = <test_breakpad.TestBreakpad object at 0x54399d0>, level = 'INFO'
> 04:46:40 line_regex = 'Wrote minidump to ', expected_count = 1
> 04:46:40 
> 04:46:40     def assert_impalad_log_contains(self, level, line_regex, expected_count=1):
> 04:46:40       """
> 04:46:40         Assert that impalad log with specified level (e.g. ERROR, WARNING, INFO) contains
> 04:46:40         expected_count lines with a substring matching the regex. When using this method to
> 04:46:40         check log files of running processes, the caller should make sure that log buffering
> 04:46:40         has been disabled, for example by adding '-logbuflevel=-1' to the daemon startup
> 04:46:40         options.
> 04:46:40         """
> 04:46:40       pattern = re.compile(line_regex)
> 04:46:40       found = 0
> 04:46:40       log_file_path = os.path.join(self.impala_log_dir, "impalad." + level)
> 04:46:40       # Resolve symlinks to make finding the file easier.
> 04:46:40       log_file_path = os.path.realpath(log_file_path)
> 04:46:40       with open(log_file_path) as log_file:
> 04:46:40         for line in log_file:
> 04:46:40           if pattern.search(line):
> 04:46:40             found += 1
> 04:46:40       assert found == expected_count, ("Expected %d lines in file %s matching regex '%s'"
> 04:46:40           + ", but found %d lines. Last line was: \n%s") % (expected_count, log_file_path,
> 04:46:40 >                                                           line_regex, found, line)
> 04:46:40 E     AssertionError: Expected 1 lines in file /data/jenkins/workspace/impala-umbrella-build-and-test/repos/Impala/logs/custom_cluster_tests/impalad.impala-boost-static-burst-slave-105e.vpc.cloudera.com.jenkins.log.INFO.20170817-034950.31592 matching regex 'Wrote minidump to ', but found 2 lines. Last line was: 
> 04:46:40 E     Wrote minidump to /tmp/tmpIwVjcx/impalad/2a84fe94-2f54-4835-2e835cae-7c485c64.dmp
> 04:46:40 
> 04:46:40 common/custom_cluster_test_suite.py:159: AssertionError
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)