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

   ## What changes were proposed in this pull request?
   This PR is to fix normalization of keyPrefix path based on bucket layout. We 
have "`ozone.om.enable.filesystem.paths`" as false by default. This config is 
currently global irrespective of any check for bucket layout. Ideally this 
config should be checked along with bucket layout because being a global 
config, path normalization logic should not be applicable for all bucket types. 
Config makes sense only for LGEACY bucket types only.
   
   When we have OBS or LEGACY bucket having keyPrefix starting with "/" like 
"/readPath/" and fsPath config ("ozone.om.enable.filesystem.paths" ) is enabled 
(true), then code flow will hit normalization of key during 
org.apache.hadoop.ozone.om.KeyManagerImpl#listKeys API call flow and normalized 
key will be "vol/buck/readPath", but in keyTable, key will be saved as 
"vol/buck//readPath/", so it doesn't match and listKeys API wouldn't be able to 
retrieve the key with normalized key path.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-10319
   
   ## How was this patch tested?
   
   Patch was tested using existing Junit and integration 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