Skip to content

Kafka Partition Revoked #214

Closed
Closed
@leorg99

Description

Hi Sergio,

Recently started using your library and love it! However, I am running into an issue. In the logs I see that the topic I am listening will get an event that the partition was revoked but then it is assigned again short time later. At some point, the partition is revoked and never assigned back.

Any idea what to check? When I check the topic to see what consumers are connected, I see none and the group is behind on messages.

Here is what my config looks like:

        builder.AddKafkaEndpoints(endpoints =>
        {
            endpoints
                .Configure(config =>
                {
                    config.BootstrapServers = connectionSettings.BootstrapServers;
                    config.AllowAutoCreateTopics = false;
                    config.ClientId = "prospect_index_daemon_v2";
                })
                .AddInbound<IndexProspect.Command>(
                    endpoint =>
                        endpoint.ConsumeFrom(KafkaConfig.Topics.ProspectV2IndexRequests.GetTopic(settings.EnvironmentName))
                                .Configure(config =>
                                {
                                    config.GroupId = "prospect_index_daemon_v2";
                                    config.AutoOffsetReset = AutoOffsetReset.Earliest;
                                })
                                .ProcessAllPartitionsTogether()
                                .OnError(policy => policy.Skip())
                                .SkipNullMessages()
                )

Thanks!

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions