Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions