Skip to content
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

[Bug] System Topics throws IncompatibleSchemaException #23916

Open
2 of 3 tasks
danoshi opened this issue Jan 31, 2025 · 2 comments
Open
2 of 3 tasks

[Bug] System Topics throws IncompatibleSchemaException #23916

danoshi opened this issue Jan 31, 2025 · 2 comments
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@danoshi
Copy link

danoshi commented Jan 31, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

Pulsar version 3.0.8.1 LTS
Pulsar client version 3.0.8
Java version openjdk 17.0.13

Minimal reproduce step

Create a Namespace with the property schemaValidationEnforced: true.

What did you expect to see?

SystemTopics are skipped when doing the schemaValidation.

What did you see instead?

IncompatibleSchemaException.

Anything else?

Hi,
we observe a strange behaviour in our pulsar cluster which I would like to clarify if this is intended.
We ran in a HA setup which means when I create a topology this will be replicated in the second cluster as well.
So one of our customers created a namespace with the property schemaValidationEnforced: true but this seems to cause some issues for the system topics.

[pulsar-io-6-4] WARN org.apache.pulsar.broker.service.AbstractReplicator - [persistent://tenant/namespace/__change_events | pulsar-prod-ha1-->pulsar-prod-ha2] Failed to create remote producer (org.apache.pulsar.client.api.PulsarClientException$IncompatibleSchemaException: {"errorMsg":"org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema caused by org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema","reqId":3006917652050389956, "remote":"our.pulsar.cluster/:6651", "local":"/:34314"}), retrying in 57.934 s

2025-01-29T14:41:26,689+0000 [pulsar-io-6-4] ERROR org.apache.pulsar.client.impl.ProducerImpl - [persistent://tenant/namespace/__change_events] [pulsar.repl.pulsar-prod-ha1-->pulsar-prod-ha2] Failed to create producer: {"errorMsg":"org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema caused by org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema","reqId":3006917652050389956, "remote":"our.pulsar.cluster/:6651", "local":"/"}

025-01-29T14:41:26,689+0000 [pulsar-io-6-4] WARN org.apache.pulsar.client.impl.ClientCnx - [id: 0x755f1150, L:/100.70.32.147:34314 - R:rour.pulsar.cluster/:6651] Received error from server: org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema caused by org.apache.pulsar.broker.service.schema.exceptions.IncompatibleSchemaException: Producers cannot connect or send message without a schema to topics with a schema

I turned off schemaValidationEnforced off on namespace level and i can confirm that the error is gone and I do not see it for any system topic for that specific namespace.

Can you confirm to me that this is intended? I guess the schemaValidationEnforced: true is inherited to the topic but I would be curious how this is solved when it comes to the system topics?

We ran currently the pulsar LTS version 3.0.8.1.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@danoshi danoshi added the type/bug The PR fixed a bug or issue reported a bug label Jan 31, 2025
@lhotari
Copy link
Member

lhotari commented Jan 31, 2025

We ran currently the pulsar LTS version 3.0.8.1.

@danoshi Is this a custom build of Pulsar? Just wondering since in Apache Pulsar we don't have a version tagged 3.0.8.1 .

@danoshi
Copy link
Author

danoshi commented Jan 31, 2025

@lhotari sorry I mean 3.0.8, the 1 afterwards was added from our pipeline when tagging it and pushing to our artifactory.

We ran the 3.0.8 LTS version of pulsar.
https://pulsar.apache.org/release-notes/versioned/pulsar-3.0.8/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

2 participants