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/03/23 09:23:25 UTC

[GitHub] [bookkeeper] dmercuriali commented on a change in pull request #2296: #2288: add metadata to StreamStorage ledgers

dmercuriali commented on a change in pull request #2296:  #2288: add metadata to StreamStorage ledgers
URL: https://github.com/apache/bookkeeper/pull/2296#discussion_r396309472
 
 

 ##########
 File path: stream/statelib/src/main/java/org/apache/bookkeeper/statelib/impl/rocksdb/checkpoint/dlog/DLCheckpointStore.java
 ##########
 @@ -98,6 +100,9 @@ public OutputStream openOutputStream(String filePath) throws IOException {
         try {
             DistributedLogManager dlm = namespace.openLog(
                 filePath);
+            LedgerMetadata metadata = new LedgerMetadata();
+            metadata.setApplication(Constants.LEDGER_METADATA_APPLICATION_STREAM_STORAGE);
+            metadata.setComponent("checkpoint-store");
 
 Review comment:
   passed to the openAsyncLogWriter call

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