You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/02/10 06:45:04 UTC

[GitHub] [ozone] rakeshadr edited a comment on pull request #1891: HDDS-4790. Add a tool to parse entries in the prefix format

rakeshadr edited a comment on pull request #1891:
URL: https://github.com/apache/ozone/pull/1891#issuecomment-776480046


   > From the description it's not fully clear what is the goal of this tool. Can you please help me to understand the use-case? Looks interesting...
   > 
   > (Is it similar to the `ozone debug ldb`?)
   
   Thanks @elek for the interest in this work. As we know, with prefix based implementation keypath stores only leaf node(fileName/dirName) and table key like <parentID/fileName>. The idea behind this tool is to print only necessary information to quickly help to inter-connect the path elements. `ldb` is printing entire details and which is difficult to go through all the content and find out any mistakes quickly. I believe, we would add more tools based on the usability/debugability.
   
   Welcome thoughts/feedback:-)
   
      ```
       For example, if a key "a/b/key1" created into a FSOBucket then each
       path component will be assigned an ObjectId and linked to its parent path
       component using parent's objectID.
      
       Say, Bucket's ObjectID = 512, which is the parent for its immediate child
       element.
   
      | ------------------------------------------|
      | PathComponent |   ObjectID   |   ParentID |
      | ------------------------------------------|
      |      a        |     1024     |     512    |
      | ------------------------------------------|
      |      b        |     1025     |     1024   |
      | ------------------------------------------|
      |     key1      |     1026     |     1025   |
      | ------------------------------------------|
   ```
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org