adoroszlai opened a new pull request, #4564:
URL: https://github.com/apache/ozone/pull/4564

   ## What changes were proposed in this pull request?
   
   `testListStatusWithIntermediateDir` intermittently fails because it finds 
two entries in the root directory instead of one:
   
   ```
   AssertionError: expected:<1> but was:<2>
     ...
     at 
org.apache.hadoop.fs.ozone.TestOzoneFileSystem.testListStatusWithIntermediateDir(TestOzoneFileSystem.java:645)
   ```
   
   Including the file status list in the assertion message reveals that the 
unexpected extra entry is `.Trash`:
   
   ```
   AssertionFailedError: Found [
     FileStatus{path=o3fs://bucket40939.volume15180/.Trash; isDirectory=true; 
modification_time=1680592792546; access_time=1680592792546; owner=runner; 
group=runner; permission=rwxrwxrwx; isSymlink=false; hasAcl=false; 
isEncrypted=false; isErasureCoded=false},
     FileStatus{path=o3fs://bucket40939.volume15180/object-dir; 
isDirectory=true; modification_time=1680592792548; access_time=1680592792548; 
owner=runner; group=runner; permission=rwxrwxrwx; isSymlink=false; 
hasAcl=false; isEncrypted=false; isErasureCoded=false}
   ] with layout:LEGACY, fsPaths:false ==> expected: <1> but was: <2>
   ```
   
   Since trash is handled by background thread (cleaning up deleted items from 
other tests in the same class), it may or may not be present at the time of the 
test.  This PR changes the test to ignore it.
   
   https://issues.apache.org/jira/browse/HDDS-8370
   
   ## How was this patch tested?
   
   No failure of this test in 100/100 runs (but two other tests are still 
flaky):
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/4669634394
   
   Regular CI:
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/4681320457


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to