Suppose:
- Kakfa consumer reads a message M from its assigned partition P
- It gets network-partitioned away from the broker
- Kafka detects this and reassigns P to a consumer on another machine.
- Network-partition is healed, and the first consumer tries to commit the offset for message M
Will there be any exception thrown in step 4? Is there a check which detects that the first consumer is no longer assigned partition P, and so shouldn't be committing offsets for it?