You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/02/11 06:26:51 UTC

[GitHub] [ozone] umamaheswararao commented on pull request #3076: HDDS-6295. EC: Fix unaligned stripe write failure due to length overflow.

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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org