frotmo commented on PR #11619: URL: https://github.com/apache/rocketmq/pull/11619#issuecomment-7180327702
One more thing I just spotted: #11610 is an earlier attempt at the same issue — a very small guard plus a reader-level handshake test added to the existing `AutoSwitchHAStateValidationTest`. Its equality-boundary case feeds a handshake frame through `HAClientReader.processReadResult` and asserts the transition to `TRANSFER`, which matches the handshake-path coverage the review keeps asking for, so it seems worth preserving in whichever branch we converge on. @wozhenbang2004 — would you be open to joining the consolidation too? If you're comfortable with it, your test approach could be folded into the surviving PR rather than keeping a third parallel patch; the follow-up review on #11610 also asks for the rejection path to go through the reader, which fits naturally alongside the latch tests. The two two-store scenarios reproduced on #11610 (the same-epoch rewrite and the unclean-election rejoin) would also be useful evidence to cite, so they don't have to be redone from scratch. Of course, if you'd rather keep #11610 as its own PR, that's entirely your call — I just wanted to make the option visible. No fixed plan or split in mind from my side — happy to follow @JiangSOBD's and your lead on where this work should live. I'd just like to avoid three parallel patches and keep everyone's contribution in one place. -- 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]
