-
Notifications
You must be signed in to change notification settings - Fork 614
NMS-19082 Enable Kafka Producer to sent separate topics to different kafka servers #8150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: foundation-2024
Are you sure you want to change the base?
Conversation
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Show resolved
Hide resolved
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing a critical piece here. We need this for metrics as well with KafkaPersisterFactory
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to have a end-to-end test that actually sends messages to different Kafka clusters.
...er/src/main/java/org/opennms/features/kafka/producer/collection/KafkaPersisterActivator.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...ucer/src/main/java/org/opennms/features/kafka/producer/collection/KafkaPersisterFactory.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take care of all review comments including adding a integration test.
...ucer/src/main/java/org/opennms/features/kafka/producer/collection/KafkaPersisterFactory.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and this doesn't work. Removing initialization of producer in KafkaProducerManager#init helped.
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...ucer/src/main/java/org/opennms/features/kafka/producer/collection/KafkaPersisterFactory.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
features/kafka/producer/src/main/java/org/opennms/features/kafka/producer/NoOpProducer.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
...s/kafka/producer/src/main/java/org/opennms/features/kafka/producer/KafkaProducerManager.java
Outdated
Show resolved
Hide resolved
features/kafka/producer/src/test/java/org/opennms/features/kafka/producer/KafkaForwarderIT.java
Outdated
Show resolved
Hide resolved
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this. Seems to work fine.
Whenever we update config at runtime, we need to stop and start the feature. This needs to be incorporated into the doc.
|
I have tested it and working as expected |
cgorantla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments to cleanup otherwise LGTM
Enable Kafka Producer to sent separate topics to different Kafka Servers, IE: Alarms get to sent to one set of kafka servers, events to another set, metrics to another set.