sashapolo commented on code in PR #6702:
URL: https://github.com/apache/ignite-3/pull/6702#discussion_r2416120923
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/SegstoreLogStorage.java:
##########
@@ -87,8 +92,12 @@ public long getLastLogIndex() {
}
@Override
- public LogEntry getEntry(long index) {
- throw new UnsupportedOperationException();
+ public @Nullable LogEntry getEntry(long index) {
+ try {
+ return segmentFileManager.getEntry(groupId, index,
logEntryDecoder);
+ } catch (IOException e) {
+ throw new IgniteInternalException(INTERNAL_ERR, e);
Review Comment:
Not sure about the message. Having a more specific error code makes sense,
I'll think about it and will maybe add it in a separate PR.
--
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]