Skip to content

Commit

Permalink
fix get message from tiered store from cache too large
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 authored Dec 25, 2024
1 parent 1c35adb commit eea8264
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ protected GetMessageResultExt getMessageFromCache(
if (result.getMessageCount() == maxCount) {
break;
}
if (result.getBufferTotalSize() >= storeConfig.getReadAheadMessageSizeThreshold()) {
break;
}
}
result.setStatus(result.getMessageCount() > 0 ?
GetMessageStatus.FOUND : GetMessageStatus.NO_MATCHED_MESSAGE);
Expand Down

0 comments on commit eea8264

Please sign in to comment.