prathmesh12-coder opened a new pull request, #10967: URL: https://github.com/apache/ozone/pull/10967
## What changes were proposed in this pull request? - Currently, the datanode will finalize a block if it encounters PutBlock with eof flag set. There should only be one PutBlock with eof flag since PutBlock is not idempotent. Currently this is not caught which can cause issue like [HDDS-12007](https://issues.apache.org/jira/browse/HDDS-12007) to not be detected. - Therefore, we need to assert that once we encounter block EOF, there will not be any more writes on that block. We should throw exception (or ignore) if there are some writes after EOF. This change ignores them and logs a warning. - Added `eofBlockCache` on open/closing containers to track blocks finalized by an EOF PutBlock. - In `BlockManagerImpl#persistPutBlock`, ignored subsequent writes on those blocks. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15723 ## How was this patch tested? - Added unit tests for simple and incremental writes. - CI : https://github.com/prathmesh12-coder/ozone/actions/runs/31173426474 -- 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]
