[ https://issues.apache.org/jira/browse/IMPALA-8934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933710#comment-16933710 ]
ASF subversion and git services commented on IMPALA-8934: --------------------------------------------------------- Commit 391942d79dec18b086a85e29a75a873e74955518 in impala's branch refs/heads/master from Sahil Takiar [ https://gitbox.apache.org/repos/asf?p=impala.git;h=391942d ] IMPALA-8924, IMPALA-8934: Result spooling failpoint tests, fix DCHECKs Adds several "failpoint" tests to test_result_spooling.py. These tests use debug_actions spread throughout buffered-plan-root-sink.cc to trigger failures while result spooling is running. The tests validate that all queries gracefully fail and do not cause any impalad crashes. Fixed a few bugs that came up when adding these tests, as well as the crash reported in IMPALA-8924 (which is now covered by the failpoint tests added in this patch). The first bug fixed was a DCHECK in SpillableRowBatchQueue::IsEmpty() where the method was being called after the queue had been closed. The fix is to only call IsEmpty() if IsOpen() returns true. The second bug was an issue in the cancellation path where BufferedPlanRootSink::GetNext would enter an infinite loop if the query was cancelled and then GetNext was called. The fix is to check the cancellation state in the outer while loop. Testing: * Added new tests to test_result_spooling.py * Ran core tests Change-Id: Ib96f797bc8a5ba8baf9fb28abd1f645345bbe932 Reviewed-on: http://gerrit.cloudera.org:8080/14214 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> > Add failpoint tests to result spooling code > ------------------------------------------- > > Key: IMPALA-8934 > URL: https://issues.apache.org/jira/browse/IMPALA-8934 > Project: IMPALA > Issue Type: Sub-task > Affects Versions: Impala 3.2.0 > Reporter: Sahil Takiar > Assignee: Sahil Takiar > Priority: Major > > IMPALA-8924 was discovered while running {{test_failpoints.py}} with results > spooling enabled. The goal of this JIRA is to add similar failpoint coverage > to {{test_result_spooling.py}} so that we have sufficient coverage for the > various failure paths when result spooling is enabled. > The failure paths that should be covered include: > * Failures while executing the exec tree should be handled correctly -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org