ashishkumar50 opened a new pull request, #4531: URL: https://github.com/apache/ozone/pull/4531
## What changes were proposed in this pull request? ListStatus should use local cache copy. It should not use and update main cache which is used for DB updation. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8292 ## How was this patch tested? Tested using below steps 1. Create file 2. Commit key 3. Rename file (cache value updated in OM memory, still value to be updated in Rocksdb which in this case happened at step 5) 4. List status is called, which reads from cache as well as updating cache value to full path(which it should not mean to do))-->At this step keyName is becoming wrong. If X number of times, List status is called before commit to DB, X number of times keys are appended. 5. Write to DB(commit to DB for rename file operation) -->Since memory value is corrupted it inserts repeated keyName to DB. After the fix, it works in local cache and doesn't impact doublebuffer cache. RocksDB updates with correct keyName and also ListStatus returns proper result. -- 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]
