Skip to content

Commit

Permalink
MINOR: Fix typo and refactor new group coordinator tests (apache#17072)
Browse files Browse the repository at this point in the history
This patch fixes a few things:
* Typos.
* Merge the tests for fetchOffsets and fetchAllOffsets together into parameterized tests since they share the same structure.
* Use Topic.GROUP_METADATA_TOPIC_NAME instead of __consumer_offsets in new group coordinator tests.

Reviewers: Ken Huang <[email protected]>, David Jacot <[email protected]>
  • Loading branch information
squah-confluent authored and tedyu committed Jan 6, 2025
1 parent d55747b commit 011c3aa
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class CoordinatorOperationExceptionHelper {
/**
* This is the handler commonly used by all the operations that requires to convert errors to
* coordinator errors. The handler also handles and log unexpected errors.
* coordinator errors. The handler also handles and logs unexpected errors.
*
* @param operationName The name of the operation.
* @param operationInput The operation's input for logging purposes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ private static boolean isGroupIdNotEmpty(String groupId) {

/**
* This is the handler used by offset fetch operations to convert errors to coordinator errors.
* The handler also handles and log unexpected errors.
* The handler also handles and logs unexpected errors.
*
* @param operationName The name of the operation.
* @param request The OffsetFetchRequestGroup request.
Expand Down
Loading

0 comments on commit 011c3aa

Please sign in to comment.