mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
To test the code, add a new failpoint test to handle errors in scanner preparation. The added test failed before this change. Also some minor formatting cleanup in surrounding code. As part of change, factored out part of ScannerThread to reduce nesting of conditionals. Also avoid storing scanners and scanner contexts in RuntimeState when not necessary, so that they can be freed earlier. Change-Id: I9d2fbc64ca54d65cfc53c4cacf818f6210963361 Reviewed-on: http://gerrit.cloudera.org:8080/1576 Reviewed-by: Dan Hecht <dhecht@cloudera.com> Readability: Dan Hecht <dhecht@cloudera.com> Tested-by: Internal Jenkins