Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chakru-r
Copy link
Collaborator

Removes kafka-setup and moves the topic setup into system-update.

Topics are listed in the application.yaml config and the KafkaConfiguration now enumerates the list of topics in order to create them. This enables any new topic to be easily created.
The KafkaConfiguration also supports topicDefaults that are merged with per-topic configs when creating the topics.

Includes Doc updates on additional configuration options

@chakru-r chakru-r changed the title Cr oss kafka setup feat(kafka): refactor kafka topic mgmt and move setup to system-update Aug 26, 2025
@github-actions github-actions bot added docs Issues and Improvements to docs product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Aug 26, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [actionlint] reported by reviewdog 🐶
shellcheck reported issue in this script: SC2162:info:5:91: read without -r will mangle backslashes [shellcheck]

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [actionlint] reported by reviewdog 🐶
shellcheck reported issue in this script: SC2162:info:7:13: read without -r will mangle backslashes [shellcheck]

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [actionlint] reported by reviewdog 🐶
shellcheck reported issue in this script: SC2086:info:8:10: Double quote to prevent globbing and word splitting [shellcheck]

@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 90.32258% with 18 lines in your changes missing coverage. Please review.
⚠️ Test Analytics upload error: Unsupported file format

Files with missing lines Patch % Lines
...din/metadata/config/kafka/TopicsConfiguration.java 66.66% 3 Missing and 7 partials ⚠️
...ub/upgrade/system/kafka/CreateKafkaTopicsStep.java 94.93% 2 Missing and 2 partials ⚠️
...ub/upgrade/system/kafka/WaitForKafkaReadyStep.java 88.88% 3 Missing ⚠️
...kedin/datahub/upgrade/system/kafka/KafkaSetup.java 85.71% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@chakru-r chakru-r marked this pull request as ready for review August 26, 2025 08:21
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Aug 26, 2025

@Autowired private OperationContext opContext;

@Order(1) // This ensures it runs before BuildIndices (@Order(1))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Technically the BuildIndices and Kafka setup can run concurrently. Fine with the strict ordering for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but since we run them sequentially, have the same ID just means one of them is ahead. Will address this when introducing a DAG to define upgrade step dependencies to get true parallelism.

@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Aug 26, 2025
private final KafkaConfiguration _kafkaConfiguration;
private final KafkaProperties _kafkaProperties;

private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
Copy link
Collaborator

@david-leifker david-leifker Aug 26, 2025

Choose a reason for hiding this comment

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

Prefer the object mapper in opContext

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ObjectMapper in opContext was null. Will revisit this.

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Aug 26, 2025
@chakru-r chakru-r force-pushed the cr-oss-kafka-setup branch from b667acb to 711cd08 Compare August 27, 2025 10:53
@chakru-r chakru-r merged commit cbb5f9a into master Aug 27, 2025
60 of 62 checks passed
@chakru-r chakru-r deleted the cr-oss-kafka-setup branch August 27, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops PR or Issue related to DataHub backend & deployment docs Issues and Improvements to docs pending-submitter-merge product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants