-
Notifications
You must be signed in to change notification settings - Fork 120
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
Trigger related to KafkaBroker creation failed #720
Comments
Can you provide a reproducer and share the status of the trigger? That configmap is internal only and should not be touched. |
Yes. Here's the definition of Trigger.
|
Can you share the broker called default too? |
Yes. Here it is.
|
|
Ok, sorry. My mistake. After fixing it works fine. I have a
If I want to filter events I should attach Trigger to the Knative Service like below or to the KafkaSource?
|
It should be: Source (KafkaSource) -> Broker -> Trigger apiVersion: sources.knative.dev/v1beta1
kind: KafkaSource
metadata:
name: kafka-source-orders-customer
spec:
bootstrapServers:
- my-cluster-kafka-bootstrap.kafka:9092
topics:
- order-events
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: default
---
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
name: default
annotations:
eventing.knative.dev/broker.class: Kafka
---
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: customer-saga-trigger
spec:
broker: default
filter:
attributes:
kafkaheadercetype: order
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: customer-saga
uri: /customers/reserve
No problem, I have actually collected 2 action items thanks to this issue:
|
Ok. Thanks for help! |
We've got a bug [1] report for a misconfiguration of `default.topic.replication.factor`. This PR adds a note that could alert users on the value of this configuration. [1] knative-extensions/eventing-kafka-broker#720
We've got a bug [1] report for a misconfiguration of `default.topic.replication.factor`. This PR adds a note that could alert users on the value of this configuration. [1] knative-extensions/eventing-kafka-broker#720
* Add a note on replication factor value We've got a bug [1] report for a misconfiguration of `default.topic.replication.factor`. This PR adds a note that could alert users on the value of this configuration. [1] knative-extensions/eventing-kafka-broker#720 * Update docs/eventing/broker/kafka-broker.md Co-authored-by: Ashleigh Brennan <40172997+abrennan89@users.noreply.github.com> Co-authored-by: Ashleigh Brennan <40172997+abrennan89@users.noreply.github.com>
We've got a bug [1] report for a misconfiguration of `default.topic.replication.factor`. This PR adds a note that could alert users on the value of this configuration. [1] knative-extensions/eventing-kafka-broker#720
* Add a note on replication factor value We've got a bug [1] report for a misconfiguration of `default.topic.replication.factor`. This PR adds a note that could alert users on the value of this configuration. [1] knative-extensions/eventing-kafka-broker#720 * Update docs/eventing/broker/kafka-broker.md Co-authored-by: Ashleigh Brennan <40172997+abrennan89@users.noreply.github.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Ashleigh Brennan <40172997+abrennan89@users.noreply.github.com>
In knative-extensions#720 I noticed that our error propagation isn't helpful for troubleshooting, since when a broker is not ready, the error in the trigger ready condition is overridden by "Broker not found in data plane map". Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
In #720 I noticed that our error propagation isn't helpful for troubleshooting, since when a broker is not ready, the error in the trigger ready condition is overridden by "Broker not found in data plane map". Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@pierDipi I had back to this after some time. I set exactly the configuration you send me. But I've got an exception between KafkaSource and Broker. In the broker logs I see the following exception. I do not set that header: kafkaheadercontenttype. It is probably set by the KafkaSource. Do you have any idea what's the problem?
|
It's a bug in the SDK, I'll send a PR there. |
Can you open a different issue since it's a different bug? |
Of course. I created #780 |
Describe the bug
When I'm trying to create a trigger related to KafkaBroker I receive a following error:
"broker not found in data plane config map knative-eventing/kafka-broker-brokers-triggers"
It creates a new ConfigMap knative-eventing/kafka-broker-brokers-triggers, but it is empty and I can't find any reference what I should to put there.
Expected behavior
Trigger is created without any errors
To Reproduce
Create a trigger related to Kafka broker
Knative release version
0.21
The text was updated successfully, but these errors were encountered: