Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6889

Fix Streams system test to only specify used log files

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streams, system tests
    • Labels:

      Description

      In `streams.py` the class `StreamsTestBaseService` lists many log files that are only used in certain tests. For all tests, that do not use those log files, during the test run WARN messages are produced:

      [WARNING - 2018-05-09 13:51:22,065 - test - compress_service_logs - lineno:131]: Error compressing log /mnt/streams/streams.stdout.0-6: service <StreamsSmokeTestJobRunnerService-0-140502617565072: num_nodes: 1, nodes: ['worker7']>: ubuntu@worker7: Command 'cd "$(dirname /mnt/streams/streams.stdout.0-6)" && f="$(basename /mnt/streams/streams.stdout.0-6)" && tar czf "$f.tgz" "$f" && rm -rf /mnt/streams/streams.stdout.0-6' returned non-zero exit status 2. Remote error message: tar: streams.stdout.0-6: Cannot stat: No such file or directory
      tar: Exiting with failure status due to previous errors
      

      Those message spam the output and might be miss leading. We should update the Streams system tests accordingly such that each test only specifies the log-file names it actually uses to avoid the WARN message.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mjsax Matthias J. Sax
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: