Kafka Offset after retention period

AKC

I have a kafka topic with 1 partition. if it had 100 messages in it the offset would be from 0.99.

According the kafka retention policy all of the messages will be wiped out after the specified period.

and i am sending 100 new messages to the topic once all have been wiped out(after retention period). Now, where would the new offset of the message start from? is it From 100 or from 0??

I am trying to understand whether the new offsets will be 100-199 or 0-99?

amethystic

Kafka honors the log retention policy by deleting log segments which satisfy the predicate and it will not never remove the active log segment which means the base offset of the active log segment will always be kept.

As for your example, if the first batch of 100 messages are all in a same log segment, Kafka will create a new log segment with the base offset of 100 and delete the old segment after a log-retention-period amount of time passed. So a new message starts offset at 100.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

What is a retention period of deleted Azure SQL Databases?

分類Dev

Kafka Streams: How to ensure offset is committed after processing is completed

分類Dev

Kafka Consumer not able to read all message after offset commit (error=OFFSET_OUT_OF_RANGE

分類Dev

kafka retention policy didn't work as expected

分類Dev

Kafka - How to commit offset after every message using High-Level consumer?

分類Dev

Kafka consumer manual commit offset

分類Dev

kafka: keep track of producer offset

分類Dev

Does an update on the Kafka Log Retention default value requires any downtime?

分類Dev

Incorrect Kafka offset across consumer groups

分類Dev

WARN New offset is higher than latest offset. Why I cannot change offset in Kafka?

分類Dev

kafka + log.retention.byteの値を計算する方法

分類Dev

Kafkaのretention.msはKafka0.10.2で実施されていませんか?

分類Dev

symfony2 logout after a period of inactivity

分類Dev

Monitors "sleep" after no external input for a period of time

分類Dev

Extract characters from string after last period

分類Dev

Spark 1.6 Streaming consumer reading in kafka offset stuck at createDirectStream

分類Dev

Who keeps track of the last read message offset of the consumer in Apache Kafka?

分類Dev

Kafka messages not writen to parquet file until the latest offset is reached

分類Dev

Automatically spin down USB hard drives after period of inactivity

分類Dev

Fiware Orion Context Broker-Send notifications after a period of time

分類Dev

Interrupting an unknown long-running function after a certain time period

分類Dev

Oracle doesn't concatenate after TZ_OFFSET()

分類Dev

Retention.msを設定するときにKafkaがデータを削除しない

分類Dev

kafka-configsを使用してoffsets.retention.minutesを表示および設定する方法

分類Dev

Kafka Log Retentionのデフォルト値を更新するには、ダウンタイムが必要ですか?

分類Dev

kafkaトピックでretention.msが機能しないことを動的に構成する

分類Dev

How to set offset committed by the consumer group using Spark's Direct Stream for Kafka?

分類Dev

spark-streaming-kafka-0-10 auto.offset.reset is always set to none

分類Dev

Is consumer offset commited even when failing to post to output topic in Kafka Streams?

Related 関連記事

  1. 1

    What is a retention period of deleted Azure SQL Databases?

  2. 2

    Kafka Streams: How to ensure offset is committed after processing is completed

  3. 3

    Kafka Consumer not able to read all message after offset commit (error=OFFSET_OUT_OF_RANGE

  4. 4

    kafka retention policy didn't work as expected

  5. 5

    Kafka - How to commit offset after every message using High-Level consumer?

  6. 6

    Kafka consumer manual commit offset

  7. 7

    kafka: keep track of producer offset

  8. 8

    Does an update on the Kafka Log Retention default value requires any downtime?

  9. 9

    Incorrect Kafka offset across consumer groups

  10. 10

    WARN New offset is higher than latest offset. Why I cannot change offset in Kafka?

  11. 11

    kafka + log.retention.byteの値を計算する方法

  12. 12

    Kafkaのretention.msはKafka0.10.2で実施されていませんか?

  13. 13

    symfony2 logout after a period of inactivity

  14. 14

    Monitors "sleep" after no external input for a period of time

  15. 15

    Extract characters from string after last period

  16. 16

    Spark 1.6 Streaming consumer reading in kafka offset stuck at createDirectStream

  17. 17

    Who keeps track of the last read message offset of the consumer in Apache Kafka?

  18. 18

    Kafka messages not writen to parquet file until the latest offset is reached

  19. 19

    Automatically spin down USB hard drives after period of inactivity

  20. 20

    Fiware Orion Context Broker-Send notifications after a period of time

  21. 21

    Interrupting an unknown long-running function after a certain time period

  22. 22

    Oracle doesn't concatenate after TZ_OFFSET()

  23. 23

    Retention.msを設定するときにKafkaがデータを削除しない

  24. 24

    kafka-configsを使用してoffsets.retention.minutesを表示および設定する方法

  25. 25

    Kafka Log Retentionのデフォルト値を更新するには、ダウンタイムが必要ですか?

  26. 26

    kafkaトピックでretention.msが機能しないことを動的に構成する

  27. 27

    How to set offset committed by the consumer group using Spark's Direct Stream for Kafka?

  28. 28

    spark-streaming-kafka-0-10 auto.offset.reset is always set to none

  29. 29

    Is consumer offset commited even when failing to post to output topic in Kafka Streams?

ホットタグ

アーカイブ