Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
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
- links to