Sarama: Get offset by timestamp, kafka 0.10

Created on 15 Feb 2017  路  1Comment  路  Source: Shopify/sarama

Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version: fresh off github 15.feb 2017, 1416bd78f804d523005322194994f08c2a0ad797
Kafka Version: 0.10.1.1
Go Version: 1.7

Problem Description

Is there planned support to get offset by timestamp, as supported by kafka 0.10? I cannot see that it is supported by the current library.

The java-equivalent would be

 KafkaConsumer.offsetsForTimes(Map<TopicPartition, Long> timestampsToSearch) .
question

Most helpful comment

Starting in Sarama v1.11.0, the method Client.GetOffset() will automatically use the new precise timestamp fetching if your Config.Version is at least kafka version 0.10.1.

>All comments

Starting in Sarama v1.11.0, the method Client.GetOffset() will automatically use the new precise timestamp fetching if your Config.Version is at least kafka version 0.10.1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blackfox1983 picture blackfox1983  路  3Comments

chandradeepak picture chandradeepak  路  3Comments

Zaazik picture Zaazik  路  3Comments

mattes picture mattes  路  5Comments

AlbinOS picture AlbinOS  路  5Comments