umamaheswararao commented on PR #3460:
URL: https://github.com/apache/ozone/pull/3460#issuecomment-1142510133

   Anyway we are marking nodes failed after key create and and getting the 
nodes which are part of pipeline. MultiNodePipelineBlockAllocator#allocateBlock 
is more predictable node selection. So, we will choose first required nodes for 
first allocate block and then next remaining nodes in order for next 
allocateBlock. So, by default we initialize this class with 15 nodes in 
cluster. So, if we just create one key with one block in it, it should always 
choose first required nodes.
   
   Probably you can create your own client like this test doing, so that other 
tests would not have used that nodes.
   Ex:
   ```
   public void testStripeWriteRetriesOnFailures(OzoneConfiguration con,
         int clusterSize, int[] nodesIndexesToMarkFailure) throws IOException {
       close();
       MultiNodePipelineBlockAllocator blkAllocator =
           new MultiNodePipelineBlockAllocator(con, dataBlocks + parityBlocks,
               clusterSize);
       createNewClient(con, blkAllocator);
   ```


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