Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3663

Improve path matching in ERRORS section of test files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.6.0
    • None
    • Infrastructure

    Description

      We should implement more general-purpose file path matching in test_result_verifier.py, specifically to improve this logic: https://github.com/cloudera/Impala/blob/cdh5-trunk/tests/common/test_result_verifier.py#L246. The current logic appears very specifically tailored to certain error message formats. Combined with IMPALA-1872, this makes it impossible to capture some error messages (e.g., "File 'hdfs://localhost:20500/test-warehouse/bad_avro_snap_avro_snap/truncated_string.avro' is corrupt: truncated data block at offset 195").

      For example, one possible solution would be introducing wildcards, e.g. "File $WILDCARD/bad_avro_snap_avro_snap/truncated_string.avro is corrupt".

      Changing this logic may require also modifying current test files that use the "file: hdfs://regex.$" pattern in their ERRORS sections.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              skye Skye Wanderman-Milne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: