david-streamlio commented on a change in pull request #6335: Refactored JCloud 
Tiered Storage
URL: https://github.com/apache/pulsar/pull/6335#discussion_r407537446
 
 

 ##########
 File path: 
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/JCloudLedgerOffloaderFactory.java
 ##########
 @@ -38,13 +40,14 @@ public static JCloudLedgerOffloaderFactory of() {
 
     @Override
     public boolean isDriverSupported(String driverName) {
-        return BlobStoreManagedLedgerOffloader.driverSupported(driverName);
+        return JCloudBlobStoreProvider.driverSupported(driverName);
     }
 
     @Override
-    public BlobStoreManagedLedgerOffloader create(OffloadPolicies 
offloadPolicies,
-                                                  Map<String, String> 
userMetadata,
-                                                  OrderedScheduler scheduler) 
throws IOException  {
-        return BlobStoreManagedLedgerOffloader.create(offloadPolicies, 
userMetadata, scheduler);
+    public BlobStoreManagedLedgerOffloader create(OffloadPolicies 
offloadPolicies, Map<String, String> userMetadata,
+            OrderedScheduler scheduler) throws IOException {
+        
+        TieredStorageConfiguration config = 
TieredStorageConfiguration.create(userMetadata);
+        return BlobStoreManagedLedgerOffloader.create(config, userMetadata, 
scheduler);
 
 Review comment:
   The focus of this PR is to refactor the tiered storage to use JCloud. I feel 
that we need to keep this PR to just that. I suggest we create an issue for 
this and assign it to me. I will make the change after this PR has been 
successfully merged.

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


With regards,
Apache Git Services

Reply via email to