zymap commented on a change in pull request #10535:
URL: https://github.com/apache/pulsar/pull/10535#discussion_r630809805



##########
File path: 
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreManagedLedgerOffloader.java
##########
@@ -485,8 +485,9 @@ private PositionImpl lastOffered() {
      * @param offloadDriverMetadata
      * @return
      */
-    private BlobStoreLocation getBlobStoreLocation(Map<String, String> 
offloadDriverMetadata) {
-        return (!offloadDriverMetadata.isEmpty()) ? new 
BlobStoreLocation(offloadDriverMetadata) :
+    BlobStoreLocation getBlobStoreLocation(Map<String, String> 
offloadDriverMetadata) {
+        return 
(offloadDriverMetadata.keySet().containsAll(getOffloadDriverMetadata().keySet()))
 ?

Review comment:
       `getOffloadDriverMetadata()` will get the default metadata and the 
`offloadDriverMetadata` may contains more than the default value.




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