Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6979

ExportLogsStatsDistributedTestBase not removing generated files

    XMLWordPrintableJSON

    Details

      Description

      When running distributed tests of geode-web I found out that ExportLogsOverHttpDistributedTest is failing due to unexpected zip files found.

      The test works fine when run alone (`./gradlew geode-web:distributedTest --tests=ExportLogsOverHttpDistributedTest`) but
      it fails when it runs with the rest of distributed tests.

      > Task :geode-web:distributedTest
      
      org.apache.geode.management.internal.cli.commands.ExportLogsOverHttpDistributedTest > withFiles_savedToLocatorSpecifiedRelativeDir FAILED
          java.lang.AssertionError: 
          Expecting empty but was:<[/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029358.zip,
              /home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029320.zip,
              /home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029410.zip]>
      
      136 tests completed, 1 failed
      

      I found out that ExportLogsStatsOverHttpDistributedTest is creating these three zip files which are not deleted.

      This is a fragment of the standard output of ExportLogsStatsOverHttpDistributedTest:

      Command result for <export logs>: 
      Logs exported to: /home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029320.zip
      
      
      Command result for <export logs --stats-only>: 
      Logs exported to: /home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029358.zip
      
      
      Command result for <export logs --logs-only>: 
      Logs exported to: /home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029410.zip
      

      ExportLogsStatsOverHttpDistributedTest should delete these files.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alberto.bustamante.reyes Alberto Bustamante Reyes
                Reporter:
                alberto.bustamante.reyes Alberto Bustamante Reyes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m