Skip to content

Certain topic partitions are not sending fetch requests since initial start #629

Open

Description

@Syntaf

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

FWIW I have already dug through #166 and feel this issue is different enough in it's origins that I'm creating a new ticket to discuss or dig through this error.

My interpretation of this error message is that it's indicating that a particular TopicPartition (topic <-> partition pair) has not executed a fetch request since the workers have initially started.

We've been getting a large amount of these errors anytime a rebalance occurs on our faust pods, and have thus confirmed so far that there's been no negative impact on our ability to consume events or process streams. I've spent the last week+ trying to track down why this might be happening but am at a loss at this point.

From what I understand: Normally this message shouldn't occur because a background task on the Fetcher service; this task populates the fetcher's internal fetch queue with calls to the broker for each topic & partition in the current assignment.

Once the fetch queue is consumed, a TopicPartition's timestamp field is updated to represent the last time a fetch request was performed for the topic & partition.

The source of this error comes from a different background task on the Recovery service however; this task executes on startup or rebalance to build tables out of a topic's changelog and calls verify_event_path along the way. This method eventually checks whether each partition has performed a fetch since it's initial start and if one hasn't, this error message is received.

Expected behavior

Each topic-partition under the current assignments will eventually be fetched within the Fetcher requests routine

Actual behavior

Occasionally faust reports that certain topic-partitions have not proc'd a fetch request since their initial start:

[^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for ["<redacted>",0] since start (started 7.12 minutes ago)

Unknowns

I'm stumped as to how our faust consumers are seemingly processing everything as usual yet certain topic partitions never end up performing fetches since the initial start of the workers. Is this the result of a race condition, or some unique detail about how our configuration is setup?

    app = faust.App(
        id=settings.KAFKA_CONFIG["KAFKA_CONSUMER_GROUP"],
        autodiscover=True,
        broker=settings.KAFKA_CONFIG["KAFKA_BROKERS"],
        broker_credentials=broker_credentials,
        key_serializer="raw",
        value_serializer="raw",
        worker_redirect_stdouts=False,
        processing_guarantee="at_least_once",
        web_enabled=False,
        # creates a monitoring topic if not set, we can't make topics in our cluster!
        topic_disable_leader=True,
        topic_partitions=6,
        monitor=get_monitor_for_environment(settings.ENVIRONMENT),
    )

Any thoughts or recommendations here are appreciated! We're seeing tens of thousands of these error messages every week and it's unnecessarily impacting our sentry quota's as these are reported as errors

Versions

  • Python version 3.11
  • Faust version 0.10.21
  • Operating system
  • Kafka version 3.6.x
  • RocksDB version (if applicable) N/A

Activity

  1. ArtemIlinArammeem commented on Jul 23, 2025

    @ArtemIlinArammeem
    Contributor

    @Syntaf thank you for your investigation and the detailed description of the problem. Did you manage to work this issue around?

    I came the same exact path on my side and confirm that the issue still exists.
    Versions:

    • faust-streaming 0.10.24
    • store: memory
    • platform: CPython 3.11.11 (Linux x86_64), Cython (GCC 12.2.0)
    • transport aiokafka 0.12.0
    • web aiohttp 3.11.12
    • Docker image: python:3.11.11-slim-bookworm

    The event processing is not affected.
    The issue happens on rebalance.
    Here are some logs:

    # two instances working, this one is consuming partition=0
    {"timestamp":"2025-07-22T11:59:27.707329Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:27.707697Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 226: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:28.391157Z","message":"Heartbeat: MY_CONSUMER_GROUP[944] faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":813,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:28.391543Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 118: HeartbeatRequest_v1(group='MY_CONSUMER_GROUP', generation_id=944, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a')","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:28.393691Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 118: HeartbeatResponse_v1(throttle_time_ms=0, error_code=0)","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:28.393837Z","message":"Received successful heartbeat response for group MY_CONSUMER_GROUP","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":826,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:29.214144Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 226: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=0, error_code=0, highwater_offset=5, last_stable_offset=5, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:29.214371Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:29.214675Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 227: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:30.719145Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 227: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=0, error_code=0, highwater_offset=5, last_stable_offset=5, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:30.719396Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:30.719740Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 228: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    # I stop the second instance
    {"timestamp":"2025-07-22T11:59:31.391543Z","message":"Heartbeat: MY_CONSUMER_GROUP[944] faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":813,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.391813Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 119: HeartbeatRequest_v1(group='MY_CONSUMER_GROUP', generation_id=944, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a')","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.400924Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 119: HeartbeatResponse_v1(throttle_time_ms=0, error_code=27)","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    # this instance notices that the group is rebelaning
    {"timestamp":"2025-07-22T11:59:31.401045Z","message":"Heartbeat failed for group MY_CONSUMER_GROUP because it is rebalancing","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":842,"level":"WARNING"}
    {"timestamp":"2025-07-22T11:59:31.401246Z","message":"Revoking previously assigned partitions frozenset({TopicPartition(topic='TOPIC_NAME', partition=0)}) for group MY_CONSUMER_GROUP","file_name":"group_coordinator.py","func_name":"_on_join_prepare","line":415,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.402467Z","message":"Stopping heartbeat task","file_name":"group_coordinator.py","func_name":"_heartbeat_routine","line":806,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.402650Z","message":"(Re-)joining group MY_CONSUMER_GROUP","file_name":"group_coordinator.py","func_name":"perform_group_join","line":1281,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.402900Z","message":"Sending JoinGroup (JoinGroupRequest_v5(group='MY_CONSUMER_GROUP', session_timeout=60000, rebalance_timeout=60000, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, protocol_type='consumer', group_protocols=[(protocol_name='faust', protocol_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x018{\"assignment\":{\"actives\":{\"TOPIC_NAME\":[0]},\"standby...')])) to coordinator 0","file_name":"group_coordinator.py","func_name":"perform_group_join","line":1334,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.403138Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 120: JoinGroupRequest_v5(group='MY_CONSUMER_GROUP', session_timeout=60000, rebalance_timeout=60000, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, protocol_type='consumer', group_protocols=[(protocol_name='faust', protocol_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x018{\"assignment\":{\"actives\":{\"TOPIC_NAME\":[0]},\"standby...')])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.404690Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 120: JoinGroupResponse_v5(throttle_time_ms=0, error_code=0, generation_id=945, group_protocol='faust', leader_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', members=[(member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, member_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x018{\"assignment\":{\"actives\":{\"TOPIC_NAME\":[0]},\"standby...')])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.404835Z","message":"Join group response JoinGroupResponse_v5(throttle_time_ms=0, error_code=0, generation_id=945, group_protocol='faust', leader_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', members=[(member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, member_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x018{\"assignment\":{\"actives\":{\"TOPIC_NAME\":[0]},\"standby...')])","file_name":"group_coordinator.py","func_name":"perform_group_join","line":1356,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.404966Z","message":"Joined group 'MY_CONSUMER_GROUP' (generation 945) with member_id faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a","file_name":"group_coordinator.py","func_name":"perform_group_join","line":1360,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.405086Z","message":"Elected group leader -- performing partition assignments using faust","file_name":"group_coordinator.py","func_name":"perform_group_join","line":1368,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.405217Z","message":"Performing assignment for group MY_CONSUMER_GROUP using strategy faust with subscriptions {'faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a': ConsumerProtocolMemberMetadata(version=4, subscription=['TOPIC_NAME'], user_data=b'{\"assignment\":{\"actives\":{\"TOPIC_NAME\":[0]},\"standbys\":{\"TOPIC_NAME\":[1]}}...')}","file_name":"group_coordinator.py","func_name":"_perform_assignment","line":464,"level":"DEBUG"}
    # now this instance is assigned to both partitions [0, 1]
    {"timestamp":"2025-07-22T11:59:31.406242Z","message":"Finished assignment for group MY_CONSUMER_GROUP: {'faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a': ConsumerProtocolMemberAssignment(version=4, assignment=[(topic='TOPIC_NAME', partitions=[0, 1])], user_data=b'x\\x9c\\x8d\\x8f\\xc1\\n\\xc20\\x10D\\xffe\\xcf\\xc5F\\xf0Pr\\xf7.^\\xa5\\x94m\\xba\\xa4\\xc1\\xb8\\t\\xc9V\\x94\\x92\\x7f\\xb7\\xd5\\xabX\\x99\\xcb\\x1c\\xde<\\x98\\x190gg\\xf9F,\\xa0g@#\\xeeNy\\xadg\\x8a1$A\\x7f\\xc4\\xc4\\x8e\\xed\\t\\xcd\\x15-\\x81\\xbe\\xa8j\\xdf\\x96\\n\\xb2 \\x0f\\xfds\\x03n\\xcb\\x82N\\xc9\\x83\\x86Q$\\xea\\xbaV\\xbbw...')}","file_name":"group_coordinator.py","func_name":"_perform_assignment","line":473,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.406393Z","message":"Sending leader SyncGroup for group MY_CONSUMER_GROUP to coordinator 0: SyncGroupRequest_v3(group='MY_CONSUMER_GROUP', generation_id=945, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, group_assignment=[(member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', member_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x9ax\\x9c\\x8d\\x8f\\xc1\\n\\xc20\\x10D\\xffe\\xcf\\xc5F\\xf0Pr\\xf7.^\\xa5\\x94m\\xba\\xa4\\xc1\\xb8\\t\\xc9V\\x94\\x92\\x7f\\xb7\\xd5\\xabX\\x99\\xcb\\x1c\\xde<\\x98\\x190gg\\xf9F,\\xa0g...')])","file_name":"group_coordinator.py","func_name":"_on_join_leader","line":1492,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.406650Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 121: SyncGroupRequest_v3(group='MY_CONSUMER_GROUP', generation_id=945, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', group_instance_id=None, group_assignment=[(member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a', member_metadata=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x9ax\\x9c\\x8d\\x8f\\xc1\\n\\xc20\\x10D\\xffe\\xcf\\xc5F\\xf0Pr\\xf7.^\\xa5\\x94m\\xba\\xa4\\xc1\\xb8\\t\\xc9V\\x94\\x92\\x7f\\xb7\\xd5\\xabX\\x99\\xcb\\x1c\\xde<\\x98\\x190gg\\xf9F,\\xa0g...')])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.415926Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 121: SyncGroupResponse_v3(throttle_time_ms=0, error_code=0, member_assignment=b'\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x17TOPIC_NAME\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x9ax\\x9c\\x8d\\x8f\\xc1\\n\\xc20\\x10D\\xffe\\xcf\\xc5F\\xf0Pr\\xf7.^\\xa5\\x94m\\xba\\xa4\\xc1\\xb8\\t\\xc9V\\x94\\x92\\x7f\\xb7\\xd5\\xabX\\x99\\xcb\\x1c\\xde<\\x98\\x190gg\\xf9F,\\xa0g...')","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.416155Z","message":"Successfully synced group MY_CONSUMER_GROUP with generation 945","file_name":"group_coordinator.py","func_name":"_send_sync_group_request","line":1519,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.416862Z","message":"Setting newly assigned partitions {TopicPartition(topic='TOPIC_NAME', partition=0), TopicPartition(topic='TOPIC_NAME', partition=1)} for group MY_CONSUMER_GROUP","file_name":"group_coordinator.py","func_name":"_on_join_complete","line":506,"level":"INFO"}
    {"timestamp":"2025-07-22T11:59:31.417213Z","message":"Updating fetch positions for partitions [TopicPartition(topic='TOPIC_NAME', partition=0)]","file_name":"fetcher.py","func_name":"_update_fetch_positions","line":827,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.417351Z","message":"Updating fetch positions for partitions [TopicPartition(topic='TOPIC_NAME', partition=1)]","file_name":"fetcher.py","func_name":"_update_fetch_positions","line":827,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.417522Z","message":"Fetching committed offsets for partitions: [TopicPartition(topic='TOPIC_NAME', partition=0), TopicPartition(topic='TOPIC_NAME', partition=1)]","file_name":"group_coordinator.py","func_name":"_do_fetch_commit_offsets","line":1200,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.417785Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 122: OffsetFetchRequest_v1(consumer_group='MY_CONSUMER_GROUP', topics=[(topic='TOPIC_NAME', partitions=[0, 1])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.419514Z","message":"Fetching committed offsets for partitions: [TopicPartition(topic='TOPIC_NAME', partition=0)]","file_name":"group_coordinator.py","func_name":"_do_fetch_commit_offsets","line":1200,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.419693Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 123: OffsetFetchRequest_v1(consumer_group='MY_CONSUMER_GROUP', topics=[(topic='TOPIC_NAME', partitions=[0])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.419913Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 122: OffsetFetchResponse_v1(topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, metadata='', error_code=0), (partition=1, offset=8, metadata='', error_code=0)])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420077Z","message":"Resetting offset for partition TopicPartition(topic='TOPIC_NAME', partition=0) to the committed offset OffsetAndMetadata(offset=5, metadata='')","file_name":"fetcher.py","func_name":"_update_fetch_positions","line":858,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420175Z","message":"Resetting offset for partition TopicPartition(topic='TOPIC_NAME', partition=1) to the committed offset OffsetAndMetadata(offset=8, metadata='')","file_name":"fetcher.py","func_name":"_update_fetch_positions","line":858,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420340Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420419Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=1) at offset 8","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420708Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 229: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.420853Z","message":"Initiating connection to node 2 at KAFKA_SERVER:31095","file_name":"client.py","func_name":"_get_conn","line":442,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.421181Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 123: OffsetFetchResponse_v1(topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, metadata='', error_code=0)])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.421329Z","message":"Seeking to committed of partition TopicPartition(topic='TOPIC_NAME', partition=0) 5","file_name":"consumer.py","func_name":"seek_to_committed","line":901,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.421416Z","message":"Fetching committed offsets for partitions: [TopicPartition(topic='TOPIC_NAME', partition=1)]","file_name":"group_coordinator.py","func_name":"_do_fetch_commit_offsets","line":1200,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.421636Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 124: OffsetFetchRequest_v1(consumer_group='MY_CONSUMER_GROUP', topics=[(topic='TOPIC_NAME', partitions=[1])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.422841Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 124: OffsetFetchResponse_v1(topics=[(topic='TOPIC_NAME', partitions=[(partition=1, offset=8, metadata='', error_code=0)])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.422949Z","message":"Seeking to committed of partition TopicPartition(topic='TOPIC_NAME', partition=1) 8","file_name":"consumer.py","func_name":"seek_to_committed","line":901,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.430281Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Request 1: ApiVersionRequest_v0()","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.431895Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Response 1: ApiVersionResponse_v0(error_code=0, api_versions=[(api_key=0, min_version=0, max_version=9), (api_key=1, min_version=0, max_version=15), (api_key=2, min_version=0, max_version=8), (api_key=3, min_version=0, max_version=12), (api_key=4, min_version=0, max_version=7), (api_key=5, min_version=0, max_version=4), (api_key=6, min_version=0, max_version=8), (api_key=7, min_version=0, max_version=3), (api_key=8, min_version=0, max_version=8), (api_key=9, min_version=0, max_version=8), (api_key=10, min_version=0, max_version=4), (api_key=11, min_version=0, max_version=9), (api_key=12, min_version=0, max_version=4), (api_key=13, min_version=0, max_version=5), (api_key=14, min_version=0, max_version=5), (api_key=15, min_version=0, max_version=5), (api_key=16, min_version=0, max_version=4), (api_key=17, min_version=0, max_version=1), (api_key=18, min_version=0, max_version=3), (api_key=19, min_version=0, max_version=7), (api_key=20, min_version=0, max_version=6), (api_key=21, min_version=0, max_version=2), (api_key=22, min_version=0, max_version=4), (api_key=23, min_version=0, max_version=4), (api_key=24, min_version=0, max_version=4), (api_key=25, min_version=0, max_version=3), (api_key=26, min_version=0, max_version=3), (api_key=27, min_version=0, max_version=1), (api_key=28, min_version=0, max_version=3), (api_key=29, min_version=0, max_version=3), (api_key=30, min_version=0, max_version=3), (api_key=31, min_version=0, max_version=3), (api_key=32, min_version=0, max_version=4), (api_key=33, min_version=0, max_version=2), (api_key=34, min_version=0, max_version=2), (api_key=35, min_version=0, max_version=4), (api_key=36, min_version=0, max_version=2), (api_key=37, min_version=0, max_version=3), (api_key=38, min_version=0, max_version=3), (api_key=39, min_version=0, max_version=2), (api_key=40, min_version=0, max_version=2), (api_key=41, min_version=0, max_version=3), (api_key=42, min_version=0, max_version=2), (api_key=43, min_version=0, max_version=2), (api_key=44, min_version=0, max_version=1), (api_key=45, min_version=0, max_version=0), (api_key=46, min_version=0, max_version=0), (api_key=47, min_version=0, max_version=0), (api_key=48, min_version=0, max_version=1), (api_key=49, min_version=0, max_version=1), (api_key=50, min_version=0, max_version=0), (api_key=51, min_version=0, max_version=0), (api_key=56, min_version=0, max_version=3), (api_key=57, min_version=0, max_version=1), (api_key=58, min_version=0, max_version=0), (api_key=60, min_version=0, max_version=0), (api_key=61, min_version=0, max_version=0), (api_key=65, min_version=0, max_version=0), (api_key=66, min_version=0, max_version=0), (api_key=67, min_version=0, max_version=0)])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:31.432150Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Request 2: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=1, offset=8, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:32.933100Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Response 2: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=1, error_code=0, highwater_offset=8, last_stable_offset=8, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:32.933463Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=1) at offset 8","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:32.933958Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Request 3: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=1, offset=8, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    # here is the error message, but fetch requests for partition=0 obviously happened above
    {"timestamp":"2025-07-22T11:59:33.646209Z","message":"[^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='TOPIC_NAME', partition=0) since start (started 5.72 minutes ago)","file_name":"aiokafka.py","func_name":"_verify_aiokafka_event_path","line":847,"level":"ERROR"}
    {"timestamp":"2025-07-22T11:59:33.721382Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 229: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=0, error_code=0, highwater_offset=5, last_stable_offset=5, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:33.721587Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:33.721885Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 230: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.420819Z","message":"Heartbeat: MY_CONSUMER_GROUP[945] faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":813,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.421177Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 125: HeartbeatRequest_v1(group='MY_CONSUMER_GROUP', generation_id=945, member_id='faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a')","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.422201Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 125: HeartbeatResponse_v1(throttle_time_ms=0, error_code=0)","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.422400Z","message":"Received successful heartbeat response for group MY_CONSUMER_GROUP","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":826,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.434939Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Response 3: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=1, error_code=0, highwater_offset=8, last_stable_offset=8, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.435172Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=1) at offset 8","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:34.435455Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Request 4: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=1, offset=8, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.224363Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 230: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=0, error_code=0, highwater_offset=5, last_stable_offset=5, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.224808Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.225177Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 231: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.936615Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Response 4: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=1, error_code=0, highwater_offset=8, last_stable_offset=8, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.936881Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=1) at offset 8","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:35.937179Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31095> Request 5: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=1, offset=8, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:36.727952Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Response 231: FetchResponse_v4(throttle_time_ms=0, topics=[(topics='TOPIC_NAME', partitions=[(partition=0, error_code=0, highwater_offset=5, last_stable_offset=5, aborted_transactions=NULL, message_set=b'')])])","file_name":"conn.py","func_name":"_handle_frame","line":605,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:36.728186Z","message":"Adding fetch request for partition TopicPartition(topic='TOPIC_NAME', partition=0) at offset 5","file_name":"fetcher.py","func_name":"_get_actions_per_node","line":624,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:36.728494Z","message":"<AIOKafkaConnection host=KAFKA_SERVER port=31093> Request 232: FetchRequest_v4(replica_id=-1, max_wait_time=1500, min_bytes=1, max_bytes=52428800, isolation_level=0, topics=[(topic='TOPIC_NAME', partitions=[(partition=0, offset=5, max_bytes=1048576)])])","file_name":"conn.py","func_name":"send","line":475,"level":"DEBUG"}
    {"timestamp":"2025-07-22T11:59:37.421661Z","message":"Heartbeat: MY_CONSUMER_GROUP[945] faust-0.10.24-ec18b718-014a-46ce-b606-a62de3feaa8a","file_name":"group_coordinator.py","func_name":"_do_heartbeat","line":813,"level":"DEBUG"}
    

    The topic has two partitions with replication factor=3. The kafka has 3 nodes (ports 31093, 31094, 31095).

    So to summarize. Nothing bad (except error logs) happens. The error message is misleading, because it says the fetch never happened since start, although this is not true.

    @wbarnha maybe you could take a look on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions