...
RPC request | Request ShareSessionEpoch | Meaning |
---|---|---|
ShareFetch (GroupId, MemberId, ShareSessionEpoch) | 0 | This is a full fetch request. It contains the complete set of topic-partitions to fetch. It cannot contains any acknowledgements. If the request contains acknowledgements, fails with error code If the session is in the cache, discard the existing session releasing all acquired records. Create a new session in the cache with epoch 1. |
ShareFetch (GroupId, MemberId, ShareSessionEpoch) | 1 to Integer.MAX_VALUE inclusive | This is an incremental fetch request. It contains a partial set of topic-partitions to be applied to the set already in the cache. It can contain a set of acknowledgements to perform before returning the fetched data. If the session is not in the cache, fails with error code If the session is in the cache and the request epoch is incorrect, fails with error code Otherwise, update the set of topic-partitions in the cache, increment the epoch in the cache, process the acknowledgements, and fetch records from the replica manager. |
ShareFetch (GroupId, MemberId, ShareSessionEpoch) | -1 | This is a final fetch request. It can contain a final set of acknowledgements, but its primary purpose is to close the share session. If the request contains a list of topics to add or forget, fails with error code If the session is not in the cache, fails with error code If the session is in the cache and the request epoch is incorrect, fails with error code Otherwise, process the acknowledgements, release any remaining acquired records for the share session, and remove the share session from the cache. |
ShareAcknowledge (GroupId, MemberId, ShareSessionEpoch) | 0 | Fails with error code |
ShareAcknowledge (GroupId, MemberId, ShareSessionEpoch) | 1 to Integer.MAX_VALUE inclusive | If the session is not in the cache, fails with error code If the session is in the cache and the request epoch is incorrect, fails with error code Otherwise, process the acknowledgements and increment the epoch in the cache. |
ShareAcknowledge (GroupId, MemberId, ShareSessionEpoch) | -1 | If the session is not in the cache, fails with error code If the session is in the cache, process the acknowledgements, release and remaining acquired records for the share session, and remove the share session from the cache. |
...