Questions about Registering Schema #18850
Replies: 4 comments
-
If the schema is incompatible, creating a producer should fail. Did you see any problems? |
Beta Was this translation helpful? Give feedback.
-
I am writing my thesis about Pulsar and a part of it is to model producers and consumers as state machines. When the reading the code I couldn't figure out what state the producer assumes when going from Ready to RegisteringSchema and then the registering fails. Can you please refer to where in the source code is the state changed to "Failed" when the function tryRegisteringSchema catches an IncompatibleSchemaException in the ProducerImp class ? |
Beta Was this translation helpful? Give feedback.
-
ClientCnx#sendGetOrCreateSchema will send the request to broker. |
Beta Was this translation helpful? Give feedback.
-
So what does ProducerImpl#tryRegistringSchema do ? |
Beta Was this translation helpful? Give feedback.
-
Hi, I just wanted to ask about what internal state does the producer take after failing to register the Schema because its incompatible( Line 592 in ProducerImp ) . From what I have understood the state does not change but then wouldn't be logical to just close the producer. Since going back to Ready state will just result in a deadlock of an endless loop of trying to register the schema.
I hope this is the right place to ask such a question.
Beta Was this translation helpful? Give feedback.
All reactions