Skip to content

Commit

Permalink
MINOR: Fix typo and refactor new group coordinator tests (#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 Oct 9, 2024
1 parent 91390a9 commit bb6ebd8
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 bb6ebd8

Please sign in to comment.