You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "lizhimins (via GitHub)" <gi...@apache.org> on 2024/07/03 02:52:49 UTC
Re: [PR] [ISSUE #8334] fix: irreducible reference count of mapped file caused by held tiered storage's dispatch [rocketmq]
lizhimins commented on code in PR #8335:
URL: https://github.com/apache/rocketmq/pull/8335#discussion_r1663407726
##########
tieredstore/src/main/java/org/apache/rocketmq/tieredstore/core/MessageStoreDispatcherImpl.java:
##########
@@ -233,8 +242,10 @@ public CompletableFuture<Boolean> doScheduleDispatch(FlatFileInterface flatFile,
result = flatFile.appendConsumeQueue(dispatchRequest);
if (!AppendResult.SUCCESS.equals(result)) {
+ message.release();
break;
}
+ flatFile.addMessage(message);
Review Comment:
227 行,append CommitLog 的时候会有 this.bufferResultList.add(message); 这里是重复了吗?
正常会在 MessageStoreDispatcherImpl#commitAsync 这里释放引用
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org