Skip to content

Conversation

@iit2009060
Copy link
Contributor

@iit2009060 iit2009060 commented Oct 17, 2025

Added auto topic creation false for both restore and global consumers.

Reviewers: Nikita Shupletsov nshupletsov@confluent.io, Matthias J. Sax
matthias@confluent.io

@github-actions github-actions bot added streams triage PRs from the community small Small PRs labels Oct 17, 2025
Copy link
Contributor

@Nikita-Shupletsov Nikita-Shupletsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the PR.
LGTM. @mjsax Could you please take a look?

@github-actions github-actions bot removed the triage PRs from the community label Oct 21, 2025
@iit2009060
Copy link
Contributor Author

@mjsax Can you review the PR ?

baseConsumerProps.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "none");

// disable auto topic creation
baseConsumerProps.put(ConsumerConfig.ALLOW_AUTO_CREATE_TOPICS_CONFIG, "false");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we add this to NON_CONFIGURABLE_CONSUMER_DEFAULT_CONFIGS and also set it centrally in getCommonConsumerConfigs() ?

For this case, we can also remove the corresponding line in getMainConsumerConfigs()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjsax Done the changes.

Copy link
Contributor

@Nikita-Shupletsov Nikita-Shupletsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iit2009060
Copy link
Contributor Author

LGTM

Hi @mjsax Can you also review and confirm ?

}

@Test
public void shouldLogErrorWhenUserTriesToOverrideAutoCreateTopics() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also duplicate this test, using the three individual consumer prefix? (or just merge this test into the one from above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have merge the test @mjsax Please review.

@github-actions github-actions bot removed the small Small PRs label Nov 8, 2025
@mjsax mjsax merged commit 188b86f into apache:trunk Nov 10, 2025
21 of 24 checks passed
@mjsax
Copy link
Member

mjsax commented Nov 10, 2025

Thanks for the fix. Merged to trunk.

eduwercamacaro pushed a commit to littlehorse-enterprises/kafka that referenced this pull request Nov 12, 2025
…consumer (apache#20723)

Added auto topic creation false for both restore and global consumers.

Reviewers: Nikita Shupletsov <nshupletsov@confluent.io>, Matthias J. Sax
 <matthias@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants