[NAS-2562] ArchiveTests require too much free space on disk Created: 29/Sep/16  Updated: 31/Aug/17  Resolved: 31/Aug/17

Status: Resolved
Project: NetarchiveSuite
Component/s: Archive, Test
Affects Version/s: None
Fix Version/s: 5.2.2

Type: Bug Priority: Minor
Reporter: Søren Vejrup Carlsen (Inactive) Assignee: Søren Vejrup Carlsen (Inactive)
Resolution: Fixed  
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Some archivetests demand too much space left.
Either they should be skipped, if the disk-place is too low for the disk to complete successfully, or the space required should be reduced:

Tests in error:
  BitarchiveTesterAdmin.testUploadAdminAdded:91 » IOFailure No space left in dir...
  BitarchiveTesterLog.testLogUpload:91 » IOFailure No space left in dirs: [/home...
  ArcRepositoryTesterLog.testLogStore:87 » IOFailure Upload of 'logging1.ARC' ti...

Tests run: 307, Failures: 0, Errors: 3, Skipped: 64
Tests in error:
  BitarchiveTesterAdmin.testUploadAdminAdded:91 » IOFailure No space left in dir...
  BitarchiveTesterLog.testLogUpload:91 » IOFailure No space left in dirs: [/home...
  ArcRepositoryTesterLog.testLogStore:87 » IOFailure Upload of 'logging1.ARC' ti...

Tests run: 307, Failures: 0, Errors: 3, Skipped: 64

One of test-class in question is:

archive/archive-test/src/test/java/dk/netarkivet/archive/bitarchive/BitarchiveTesterAdmin.java


 Comments   
Comment by Søren Vejrup Carlsen (Inactive) [ 31/Aug/17 ]

This solved in September 2016 by adding checks like the one below to three tests:

if (!admin.hasEnoughSpace()) {
 	 	 		                System.err.println("Skipping test. Not enough space on disk to perform test");
 	 	 		                return;
 	 	 		        }

thus exiting the tests prematurely, if there was insufficient storage for the test at hand

Generated at Fri Apr 26 17:19:35 CEST 2024 using Jira 9.4.15#940015-sha1:bdaa9cbecfb6791ea579749728cab771f0dfe90b.