I was using kafka 0.10.2 and now faced a CommitFailedException. like:
Commit cannot be completed since the group has already rebalanced and assigned
session.timeout.ms set on the consumer should be less than the group.max.session.timeout.ms set on Kafka broker.
session.timeout.ms
group.max.session.timeout.ms
This resolved the issue for me.
Credit to github link Commit Failures