duongkame opened a new pull request, #4647:
URL: https://github.com/apache/ozone/pull/4647

   ## What changes were proposed in this pull request?
   
   This PR fixes a regression introduced by HDDS-7223.
   
   Before HDDS-7223, OBS and FS use-cases use different APIs to get key 
metadata.
   - `lookupKey`: used by OBS, only lookup for the exact key.
   - `lookupFile`: used by FS, has additional logic to automatically look for a 
directory key if the original key doesn't hit. For example, if the key "mydir" 
is not found, OM tries looking for "mydir/" and returns the result as a 
directory.
   
   After HDDS-7223, we've unified the two APIs as `getKeyInfo`, and this API 
inherits the directory automatic lookup like `lookupFile` does.
   
https://github.com/apache/ozone/blob/1e3ddd53f2db7cbc6beb482457ba10aab95570a8/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java#L439-L455
   
   This is incompatible for S3A use-cases (see HDDS-8496).
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8496
   
   ## How was this patch tested?
   
   Added acceptance tests. 
   


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