fat-catTW opened a new pull request, #12199:
URL: https://github.com/apache/ozone/pull/12199

   ## What changes were proposed in this pull request?
   
   S3 secret cache entries can be removed before their transactions are
   flushed to the database. A subsequent request can then read stale data
   and cause OMs to commit different S3 secret table contents.
   
   This change:
   
   - Marks revoked secrets with the revoking transaction's index, even when
     the access ID is absent from the cache.
   - Uses the access ID lock when a tenant revokes an access ID.
   - Removes a cache entry only if its current transaction index belongs to
     the flushed batch.
   - Registers revocations for cache cleanup after the double buffer flushes.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17216
   
   ## How was this patch tested?
   
   - Ran `TestS3GetSecretRequest` and
     `TestOMTenantRevokeUserAccessIdRequest`: 27 tests passed.
   - Added tests for cache cleanup during a concurrent update and for
     revocation cleanup after a double buffer flush.
   - Ran `./hadoop-ozone/dev-support/checks/checkstyle.sh`.


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