You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/15 13:07:50 UTC

[GitHub] [pulsar-client-go] GPrabhudas opened a new issue #726: DLQ producer creation fails on topic with schema

GPrabhudas opened a new issue #726:
URL: https://github.com/apache/pulsar-client-go/issues/726


   #### Expected behaviour
   
   Schema compatibility: `Forword-transitive` for example
   
   DLQ producer creation should not fail with an error
   
   #### Actual behavior
   
   DLQ producer creation fails with schema incompatibility error.
   ```go
   ERRO[0004] [Failed to create producer]                   error="server error: IncompatibleSchema: 
   
   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" topic=DLQ_TOPIC
   ```
   
   #### Steps to reproduce
   
   Use policy on topic to use Schema compatibility: `Forword-transitive`
   
   try to create consumer as follows
   ```go 
      consumer, err := client.Subscribe(pulsar.ConsumerOptions{
   		Topic:               TOPIC, // topic with schema
   		SubscriptionName:    "consumer-subscription-01",
   		Schema:              pulsar.NewAvroSchema("avro schema", nil), // topic with schema 
   		Type:                pulsar.Shared,
   		NackRedeliveryDelay: 1 * time.Second,
   		DLQ: &pulsar.DLQPolicy{
   			MaxDeliveries:   3,
   			DeadLetterTopic: DLQ_TOPIC, // topic with schema
   		},
   	})
   ```
   Here producer creation on topic `DLQ_TOPIC` fails.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] chiragbparikh commented on issue #726: DLQ producer creation fails on topic with schema

Posted by GitBox <gi...@apache.org>.
chiragbparikh commented on issue #726:
URL: https://github.com/apache/pulsar-client-go/issues/726#issuecomment-1054855341


   @sijie can we please get a review on this PR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org