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 2019/11/27 14:06:40 UTC

[GitHub] [pulsar-client-go] hailin0 opened a new issue #107: Producer deadlocks when pulsar downtime

hailin0 opened a new issue #107: Producer deadlocks when pulsar downtime
URL: https://github.com/apache/pulsar-client-go/issues/107
 
 
   #### Expected behavior
   
   Producer works normally after pulsar restart
   
   #### Actual behavior
   
   producer#flush deadlock after pulsar restart
   
   #### Steps to reproduce
   
   	for  {
   		asyncMsg := pulsar.ProducerMessage{
   			Payload: []byte(fmt.Sprintf("async-message")),
   		}
   
   		producer.SendAsync(ctx, &asyncMsg, func(mid pulsar.MessageID, msg *pulsar.ProducerMessage, err error) {
   			if err != nil { log.Fatal(err) }
   		})
   
   		// deadlock
   		producer.Flush() 
   	}
   
   =======================
   Running the above program and restarting pulsar will cause producer#flush deadlock
   
   #### System configuration
   **Pulsar version**: latest
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services