...
(record metadata) -- (confirm) --> Consumer (register succeed, block reading for coordinator requests such as ping, stop-fetcher, start-fetcher)
Coordinator (record metadata) -- (confirm) --> Consumer (same as above)
...
-- (ping) --> Consumer (failed)
----------------------------------------------------------------------------------------------
...
-- (stop-fetcher) --> Consumer (alive)
----------------------------------------------------------------------------------------------
...
-- (start-fetcher) --> Consumer (become failed)
...
Code Block |
---|
{
size: int32 // the size of this response
error_code: int16 // global error code for this request, if any
num_partition: int16 // number of partitions that the consumer is consuming
offset_info: [<offset_struct>] // the offset info for each partition consumed by this consumer, its size should be exactly num_partition
// if auto_commit is set to false the last two fields should not exist
}
offset_struct =>
{
topic: string
partition: string
offset: int64
}
|
...