Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

[BUG] un-necessary register producer in persistentTopic #192

Closed

Description

@aloyszhang

Describe the bug
KafkaTopicManager will registers a producer in PersistentTopic every time KafkaTopicManager#getTopic invoked.
However KafkaTopicManager#getTopic is invoked from not only ProduceRequest, but also many other places like KafkaRequestHandler#finkBroker() or KafkaRequestHandler#handleListOffsetRequestV1AndAbove etc.

Expected behavior
Kop should register producer only when the request is ProduceRequest

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions