add comments to pop/ack/changInvisibleTime, No Code change#10402
add comments to pop/ack/changInvisibleTime, No Code change#10402winglechen wants to merge 272 commits into
Conversation
…nd orderCountInfo
…ger" This reverts commit 177f391.
…eueLevelConsumerManager.OrderInfo
…rManager.OrderInfo
…of QueueLevelConsumerManager
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Review by github-manager-bot (Incremental)
Summary
21 new commits since the previous review (2026-06-25), adding Javadoc and inline comments to 7 files: BrokerController, ConsumerOrderInfoManager, QueueLevelConsumerManager, QueueLevelConsumerOrderInfoLockManager, AckMessageProcessor, HookUtils, and TransRocksDBRecord. All changes remain documentation-only — no functional code modifications.
Findings
-
[Critical]
AckMessageProcessor.java— Duplicate import detected:import org.apache.rocketmq.broker.pop.PopConsumerService; import org.apache.rocketmq.broker.pop.PopConsumerService;
This will cause a compilation warning or error depending on the compiler settings. Please remove the duplicate line.
-
[Warning]
QueueLevelConsumerOrderInfoLockManager.java— Typo in the class-level Javadoc:"When a consumer Pop s a batch"
Should be "When a consumer Pops a batch" (missing 'p').
-
[Positive]
BrokerController.java— The Javadoc forregisterMessageStoreHook()clearly documents the 4-step hook pipeline with proper<ol>ordering. Well structured. -
[Positive]
QueueLevelConsumerManager.java— The inline comments inupdate(),needBlock(), andmergeOffsetConsumedCount()provide useful context for the orderly consumption logic. The@param attemptIdaddition fills a gap in the existing Javadoc. -
[Positive]
HookUtils.java— The new Javadoc forsendMessageBack,handleScheduleMessage,checkBeforePutMessage, andhandleLmqQuotaconsistently documents the hook pipeline steps. TheSendMessageBackHookimport is correctly added. -
[Positive]
TransRocksDBRecord.java— The inline comments incheckTransRecordsStatusclarify the transaction check flow (checkTimes → delete, msgExt null → delete, immunity check → resolve, update checkTimes). Helpful for understanding the state machine. -
[Info]
QueueLevelConsumerManager.java— Some inline comments describe obvious operations (e.g.,// init orderInfo map,// create or merge orderInfo). While not incorrect, these add visual noise without much insight. Consider whether they add value beyond what the code already expresses.
Suggestions
- Fix the duplicate import in
AckMessageProcessor.java— this is the only actionable issue. - Fix the typo in
QueueLevelConsumerOrderInfoLockManager.javaJavadoc. - Consider consolidating the 21 small commits into fewer commits (e.g., squash by file or by logical group) before merge to keep the git history clean.
Automated review by github-manager-bot
约1200行注释,无代码修改