-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Server exception when using enum in schema #6768
Comments
Sigh. I just ran across another issue in the same vein.
Do schemas even work? |
Looks you have to specify a namespace for the schema definition. You can check here https://github.com/apache/pulsar/blob/master/pulsar-client-go/pulsar/schema_test.go#L42. |
@codelipenghui specifying a namespace has no effect. Namespace is optional in avro. |
So it looks like I had the syntax for enums wrong. It's just records and booleans which don't appear to be working right. I'm going to close this issue since it's deviated quite a bit. I'll see about a new issue with clean reproduction case. |
Describe the bug
When trying to create a topic with a schema containing an enum, an exception is thrown on the server.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error
Actual behavior
On client:
On server:
Desktop (please complete the following information):
Additional context
Pulsar version: 2.5.0
And can we please get some better error handling in that section of the code on the server? That exception is extremely confusing. It took me way too long to figure out the problem was with the
enum
.The text was updated successfully, but these errors were encountered: