adikou commented on PR #23137:
URL: https://github.com/apache/kafka/pull/23137#issuecomment-6955614175

   > Sample output with two consumers using `classic`. Both terminals run `bash 
examples/bin/java-rebalance-listener-demo.sh`.
   > 
   > Terminal A: initial assignment, followed by a rebalance when consumer B 
joins.
   > 
   > ```text
   > main - [onPartitionsAssigned] clientId=rebalance-consumer-a02b8740 
assigned [rebalance-listener-demo-0, rebalance-listener-demo-1] at positions 
{rebalance-listener-demo-0=0, rebalance-listener-demo-1=0}
   > main - [onPartitionsRevoked] clientId=rebalance-consumer-a02b8740 
committed {rebalance-listener-demo-0=OffsetAndMetadata{offset=0, 
leaderEpoch=null, metadata=''}, 
rebalance-listener-demo-1=OffsetAndMetadata{offset=0, leaderEpoch=null, 
metadata=''}} before revocation
   > main - [onPartitionsAssigned] clientId=rebalance-consumer-a02b8740 
assigned [rebalance-listener-demo-1] at positions {rebalance-listener-demo-1=0}
   > ```
   > 
   > Terminal B: after suspending A with `Ctrl+Z` and waiting for its session 
to time out.
   > 
   > ```text
   > main - [onPartitionsAssigned] clientId=rebalance-consumer-437050e3 
assigned [rebalance-listener-demo-0, rebalance-listener-demo-1] at positions 
{rebalance-listener-demo-0=0, rebalance-listener-demo-1=0}
   > ```
   > 
   > Terminal A: after resuming it with `fg`.
   > 
   > ```text
   > main - [onPartitionsLost] clientId=rebalance-consumer-a02b8740 lost 
[rebalance-listener-demo-1]
   > main - [onPartitionsAssigned] clientId=rebalance-consumer-a02b8740 
assigned [rebalance-listener-demo-1] at positions {rebalance-listener-demo-1=0}
   > ```
   
   Can you add this to the PR description? Comments get lost in the discussion


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

Reply via email to