zymap commented on a change in pull request #12452:
URL: https://github.com/apache/pulsar/pull/12452#discussion_r733489672
##########
File path:
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreBackedReadHandleImpl.java
##########
@@ -218,12 +218,26 @@ public static ReadHandle open(ScheduledExecutorService
executor,
VersionCheck versionCheck,
long ledgerId, int readBufferSize)
throws IOException {
- Blob blob = blobStore.getBlob(bucket, indexKey);
- versionCheck.check(indexKey, blob);
- OffloadIndexBlockBuilder indexBuilder =
OffloadIndexBlockBuilder.create();
- OffloadIndexBlock index;
- try (InputStream payLoadStream = blob.getPayload().openStream()) {
- index = (OffloadIndexBlock) indexBuilder.fromStream(payLoadStream);
+ int retryCount = 3;
Review comment:
This retry is for a quick retry, most of the time it shouldn't trigger.
We just want to save the network issue and avoid exiting to wait for the next
backoff.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]