Renkai commented on a change in pull request #9202:
URL: https://github.com/apache/pulsar/pull/9202#discussion_r569157858



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/LedgerOffloader.java
##########
@@ -91,6 +90,10 @@ public OffloadResult(long beginLedger, long beginEntry, long 
endLedger, long end
     String METADATA_SOFTWARE_VERSION_KEY = 
"S3ManagedLedgerOffloaderSoftwareVersion";
     String METADATA_SOFTWARE_GITSHA_KEY = 
"S3ManagedLedgerOffloaderSoftwareGitSha";
 
+    default LedgerOffloader fork() {
+        throw new UnsupportedOperationException(this.getClass().toString() + " 
fork()");
+    }

Review comment:
       This method will create a new instance with the same configuration as 
the current one. We need it because the life cycle of 
`ManagedledgerImpl.config.getLedgerOffloader()` is not stable, for streaming 
offload we need to have control of the offloader instance. I will add some 
description.




----------------------------------------------------------------
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:
[email protected]


Reply via email to