abhijeetk88 commented on code in PR #14363:
URL: https://github.com/apache/kafka/pull/14363#discussion_r1321001330


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java:
##########
@@ -382,6 +385,8 @@ private RemoteIndexCache.Entry 
createCacheEntry(RemoteLogSegmentMetadata remoteL
             TransactionIndex txnIndex = loadIndexFile(txnIndexFile, 
remoteLogSegmentMetadata, rlsMetadata -> {
                 try {
                     return remoteStorageManager.fetchIndex(rlsMetadata, 
IndexType.TRANSACTION);
+                } catch (RemoteResourceNotFoundException e) {
+                    return null;

Review Comment:
   Added.



##########
storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java:
##########
@@ -451,7 +456,7 @@ public static class Entry implements AutoCloseable {
 
         private final OffsetIndex offsetIndex;
         private final TimeIndex timeIndex;
-        private final TransactionIndex txnIndex;
+        private final Optional<TransactionIndex> txnIndexOpt;

Review Comment:
   Added



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to