chia7712 commented on code in PR #22345:
URL: https://github.com/apache/kafka/pull/22345#discussion_r4670127615
##########
storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:
##########
@@ -616,11 +610,11 @@ private CompletableFuture<Void>
publishEvents(List<RemoteLogSegmentMetadataUpdat
public Optional<RemoteLogSegmentMetadata>
fetchRemoteLogSegmentMetadata(TopicPartition topicPartition,
Review Comment:
ditto
```java
private Optional<Uuid> topicId(TopicPartition topicPartition) {
return fetchLog.apply(topicPartition).flatMap(UnifiedLog::topicId);
}
public Optional<RemoteLogSegmentMetadata>
fetchRemoteLogSegmentMetadata(TopicPartition topicPartition,
int epochForOffset,
long offset) throws RemoteStorageException {
Uuid topicId = topicId(topicPartition)
.orElseThrow(() -> new KafkaException("No topic id
registered for topic partition: " + topicPartition));
return
remoteLogMetadataManagerPlugin.get().remoteLogSegmentMetadata(new
TopicIdPartition(topicId, topicPartition), epochForOffset, offset);
}
```
##########
server-common/src/main/java/org/apache/kafka/server/common/StopPartition.java:
##########
@@ -25,13 +25,13 @@
*/
public class StopPartition {
Review Comment:
opened https://issues.apache.org/jira/browse/KAFKA-21628 to rewrite this
class
--
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]