peterxcli commented on PR #10043: URL: https://github.com/apache/ozone/pull/10043#issuecomment-4214433244
> Could you help me understand the definition of the "conflicting operation" in the Ozone case? Suppose there are two clients A, B. They have read key1 and propose to write new content with the etag to prevent conflict write because the new content is based on the existing content(eg. An increment number) T1: Client A open key1 with expected ETag 1 T2: Client B open key1 with expected ETag 1 T3: Client B finish writing blocks to DNs, commit key, the server side atomic write succeeds, new etag, generation id and location list stored into key table T4: Client A finish too, send the commit key to OM, but the OM detect the expected generation id stored in open key table for client A's id, is now different from the etag in current key in key table. So OM should throw conflict exception so s3g can tell the client A to reread and propose the write with new etag. This behavior is documented in AWS S3 Spec. --- Client A, B might be running in two threads in same s3g. -- 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]
