Skip to content

Commit

Permalink
The low watermark is not updated in the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ermakov-oleg committed Apr 27, 2024
1 parent b5616b6 commit e7c36fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kafka_earliest_timestamp_exporter/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _once(consumer: Consumer, offset_state: '_State', debug: bool) -> None:
topic_partitions = []
topic_offsets = {}
for partition in metadata.partitions:
low, high = consumer.get_watermark_offsets(TopicPartition(topic, partition), cached=True)
low, high = consumer.get_watermark_offsets(TopicPartition(topic, partition))
# Skip empty partitions
if low == high:
continue
Expand Down
2 changes: 1 addition & 1 deletion src/kafka_earliest_timestamp_exporter/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@click.option('--config', type=click.Path(exists=True, dir_okay=False, path_type=Path), required=True)
@click.option('--host', type=str, default='127.0.0.1')
@click.option('--port', type=int, default=7900)
@click.option('--interval', type=int, default=60)
@click.option('--interval', type=int, default=60 * 5)
@click.option('--state-persistence', is_flag=True)
@click.option('--debug', is_flag=True)
def cli(config: Path, host: str, port: int, interval: int, state_persistence: bool, debug: bool) -> None:
Expand Down

0 comments on commit e7c36fe

Please sign in to comment.