You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2020/04/18 09:02:21 UTC

[GitHub] [bookkeeper] fantapsody opened a new issue #2311: Support to decode metadata in the API that list ledgers

fantapsody opened a new issue #2311: Support to decode metadata in the API that list ledgers
URL: https://github.com/apache/bookkeeper/issues/2311
 
 
   **FEATURE REQUEST**
   
   1. Please describe the feature you are requesting.
   
   The current list ledgers API output the metadata in a serialized binary format, which is not friendly to human operators and external tools. For example:
   ```bash
   curl 'localhost:8080/api/v1/ledger/list?print_metadata=true'
   ```
   
   ```json
   {
     "0" : "BookieMetadataFormatVersion\t3\n(\b\u0001\u0010\u0001\u0018��\u0006 �\u0007(\u00032\u0011\n\r10.0.0.9:3181\u0010\u00008\u0003B\u0000H\u0001`\u0000"
   }
   ```
   
   2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have).
      Are you currently using any workarounds to address this issue?
   This is a should-have feature, otherwise, all eternal tools rely on this API have to deserialize the metadata by themselves, which is much harder than to parse a plaintext JSON object.
   
   3. Provide any additional detail on your proposed use case for this feature.
   
   Add a parameter such as `decode_meta`, and output the ledger metadata in decoded format when the parameter presents and the value of it is 'true'.

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


With regards,
Apache Git Services