-
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
Failed to create Consumer for the first time #6576
Comments
@zyllt Thanks for your feedback. I think the reason is the |
I will fix this issue |
@codelipenghui Thanks for your reply. I originally thought the reason is the |
the message has replicate to remote cluster, so ledger.getTotalSize() != 0 is true |
@zyllt @zplinuxlover We need a PIP for fixing this issue. Currently, Pulsar does not replicate schema between Pulsar clusters. The schema info is stored in the local zookeeper and bookkeeper, so the new proposal is for replicating schemas between different clusters. |
Any exciting news? |
Fixed by #11441 |
Describe the bug
I have 2 clusters, Beijing and Guangzhou IDC. I created a namespace and enabled geo-replication.
Under this namespace, I first successfully created a producer in Beijing IDC with topic name is
enant-test/n-1/topic-1
andSchema.STRING
, but when I create a consumer in Guangzhou with same schema, it keeps failing.To Reproduce
Steps to reproduce the behavior:
tenant-test/n-1
and enabled geo-replicationenant-test/n-1/topic-1
org.apache.pulsar.client.api.PulsarClientException$IncompatibleSchemaException: Topic does not have schema to check
Screenshots
Desktop (please complete the following information):
Additional context
I located the following source code based on the exception information
I checked path
/schemas
in zk according to the methodgetSchema
and found that there is no schemaInfo for this topic.I continued to read the source code and found the following code.
hasSchema || isActive()
should be false,butledger.getTotalSize()
should also be 0,because I haven't sent any messages in cluster B.The text was updated successfully, but these errors were encountered: