umamaheswararao commented on pull request #3076:
URL: https://github.com/apache/ozone/pull/3076#issuecomment-1035915881


   I really want a test for this.
   Below is the test code reproduces it. Please include this and update. Thanks 
a lot for your help @guihecheng 
   ```
     @Test
     public void test10D4PConfigWithPartialStripe()
         throws IOException {
       conf.set(OzoneConfigKeys.OZONE_SCM_BLOCK_SIZE,
           OzoneConfigKeys.OZONE_SCM_BLOCK_SIZE_DEFAULT);
       int dataBlks = 10;
       int parityBlk = 4;
       store.createVolume(volumeName);
       OzoneVolume volume = store.getVolume(volumeName);
       volume.createBucket(bucketName);
       OzoneBucket bucket = volume.getBucket(bucketName);
   
       try (OzoneOutputStream out = bucket.createKey(keyName, chunkSize,
           new ECReplicationConfig(dataBlks, parityBlk,
               ECReplicationConfig.EcCodec.RS, chunkSize), new HashMap<>())) {
         out.write(new byte[1023]);
       }
     }
   ```


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