ajothomas commented on code in PR #1711:
URL: https://github.com/apache/samza/pull/1711#discussion_r1794310116
##########
samza-core/src/main/java/org/apache/samza/storage/blobstore/util/BlobStoreUtil.java:
##########
@@ -182,7 +182,13 @@ public CompletableFuture<SnapshotIndex>
getSnapshotIndex(String blobId, Metadata
return FutureUtil.executeAsyncWithRetries(opName, () -> {
ByteArrayOutputStream indexBlobStream = new ByteArrayOutputStream(); //
no need to close ByteArrayOutputStream
return blobStoreManager.get(blobId, indexBlobStream, metadata,
getDeleted).toCompletableFuture()
- .thenApplyAsync(f ->
snapshotIndexSerde.fromBytes(indexBlobStream.toByteArray()), executor);
+ .thenApplyAsync(f -> {
+ try {
+ return
snapshotIndexSerde.fromBytes(indexBlobStream.toByteArray());
+ } catch (Exception e) {
+ throw new SamzaException(String.format("Unable to deserialize
SnapshotIndex bytes for blob ID: %s", blobId), e);
Review Comment:
Done. thanks
--
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]