mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-28 20:09:14 +08:00
This commit is contained in:
+2
-3
@@ -23,7 +23,6 @@ import org.apache.rocketmq.store.GetMessageResult;
|
||||
import org.apache.rocketmq.store.GetMessageStatus;
|
||||
import org.apache.rocketmq.store.MessageFilter;
|
||||
import org.apache.rocketmq.store.SelectMappedBufferResult;
|
||||
import org.apache.rocketmq.tieredstore.util.MessageBufferUtil;
|
||||
|
||||
public class GetMessageResultExt extends GetMessageResult {
|
||||
|
||||
@@ -63,9 +62,9 @@ public class GetMessageResultExt extends GetMessageResult {
|
||||
continue;
|
||||
}
|
||||
|
||||
long offset = this.getMessageQueueOffset().get(i);
|
||||
result.addMessage(new SelectMappedBufferResult(bufferResult.getStartOffset(),
|
||||
bufferResult.getByteBuffer(), bufferResult.getSize(), null),
|
||||
MessageBufferUtil.getQueueOffset(bufferResult.getByteBuffer()));
|
||||
bufferResult.getByteBuffer().asReadOnlyBuffer(), bufferResult.getSize(), null), offset);
|
||||
}
|
||||
|
||||
if (result.getBufferTotalSize() == 0) {
|
||||
|
||||
+1
-1
@@ -367,7 +367,7 @@ public abstract class TieredFileSegment implements Comparable<TieredFileSegment>
|
||||
if (fileSegmentInputStream != null) {
|
||||
long fileSize = this.getSize();
|
||||
if (fileSize == -1L) {
|
||||
logger.error("Get commit position error before commit, Commit: %d, Expect: %d, Current Max: %d, FileName: %s",
|
||||
logger.error("Get commit position error before commit, Commit: {}, Expect: {}, Current Max: {}, FileName: {}",
|
||||
commitPosition, commitPosition + fileSegmentInputStream.getContentLength(), appendPosition, getPath());
|
||||
releaseCommitLock();
|
||||
return CompletableFuture.completedFuture(false);
|
||||
|
||||
Reference in New Issue
Block a user