Skip to content

Commit 5845680

Browse files
authored
Consumer: drop max_version clamp on ListOffsetsRequest (#3012)
1 parent e946f15 commit 5845680

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

kafka/consumer/fetcher.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -747,13 +747,6 @@ async def _send_list_offsets_request(self, node_id, timestamps_and_epochs):
747747
Raises:
748748
TopicAuthorizationFailedError: if any topic returned an auth error
749749
"""
750-
# TODO:
751-
# v6 flexible
752-
# v7 MAX_TIMESTAMP (KIP-734)
753-
# v8 EARLIEST_LOCAL (KIP-405)
754-
# v9 LATEST_TIERED (KIP-1005)
755-
# v10 async remote (KIP-1075)
756-
max_version = 5
757750
min_version = 1 if any(res[0] >= 0 for res in timestamps_and_epochs.values()) else 0
758751
min_version = max(min_version, ListOffsetsRequest.min_version_for_isolation_level(self._isolation_level))
759752
by_topic = collections.defaultdict(list)
@@ -768,7 +761,6 @@ async def _send_list_offsets_request(self, node_id, timestamps_and_epochs):
768761
isolation_level=self._isolation_level,
769762
topics=list(by_topic.items()),
770763
min_version=min_version,
771-
max_version=max_version,
772764
)
773765

774766
log.debug("Sending ListOffsetRequest %s to broker %s", request, node_id)

0 commit comments

Comments
 (0)