showuon opened a new pull request #10172:
URL: https://github.com/apache/kafka/pull/10172


   We now have the debug log 
[here](https://github.com/apache/kafka/blob/ea8ae976504e7a3f5c6f4a7efa5069d03316b093/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java#L587):
 
   ```java
   log.debug("Performing assignment using strategy {} with subscriptions {}", 
assignor.name(), subscriptions);
   ```
   But we didn't override the toString method for subscription class, so user 
will get the useless debug info:
   ```
   Performing assignment using strategy cooperative-sticky with subscriptions 
{consumer-groupId-1-7fd39d50-5dc1-46f0-860e-f0361eb2afc0=org.apache.kafka.clients.consumer.ConsumerPartitionAssignor$Subscription@247d8ae,
 
   
consumer-groupId-1-09ffd69e-ce6c-4212-9d2c-218d60ad8d19=org.apache.kafka.clients.consumer.ConsumerPartitionAssignor$Subscription@48974e45}
   ```
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to