hysuuuu opened a new pull request, #23507: URL: https://github.com/apache/kafka/pull/23507
In `TaskMetadataImplTest`, the offset maps were initialized using `TP_1` for both keys, so the map only contained one entry. This typo caused `shouldBeEqualsIfOnlyDifferInCommittedOffsets` to test identical values instead of different ones, violating the test scenario. - Replaced the `mkMap()` with `Map.of()` to enforce strict duplicate key checks. - Fixed the typo by changing the first key from `TP_1` to `TP_0` so the map actually contains two distinct entries. **test** Ran `TaskMetadataImplTest` and all tests passed. -- 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]
