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


   ## What changes were proposed in this pull request?
   
   The name of volume created in `testListBucketsOnEmptyVolume` or 
`testListKeyOnEmptyBucket` might contain the prefix used in `testListVolume`:
   
   ```
   ... Creating Volume: vol-71454, ...
   ...
   ... Creating Volume: vol-714-a-0-78727, ...
   ```
   
   which leads to unexpected number of volumes with that prefix:
   
   ```
   Tests run: 80, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 175.065 s 
<<< FAILURE! - in org.apache.hadoop.ozone.client.rpc.TestOzoneRpcClient
   testListVolume  Time elapsed: 0.086 s  <<< FAILURE!
   java.lang.AssertionError: expected:<20> but was:<21>
     ...
     at 
org.apache.hadoop.ozone.client.rpc.TestOzoneRpcClientAbstract.testListVolume(TestOzoneRpcClientAbstract.java:1867)
   ```
   
   This fix simply changes to fix volume name for 
`testListBucketsOnEmptyVolume` and a different fix prefix for `testListVolume`, 
thus avoiding conflict.
   
   https://issues.apache.org/jira/browse/HDDS-5192
   
   ## How was this patch tested?
   
   https://github.com/adoroszlai/hadoop-ozone/runs/2521726183


-- 
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.

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