Creation of producer/consumer on partitioned topic should not run into race condition.
Actual behaviour
For partitioned topic, creation of producer and consumer run into race condition when trying to set DefaultMessageCrypto if it is not provided in the options.
Original Issue: apache/pulsar-client-go#707
Expected behaviour
Creation of producer/consumer on partitioned topic should not run into race condition.
Actual behaviour
For partitioned topic, creation of producer and consumer run into race condition when trying to set DefaultMessageCrypto if it is not provided in the options.
Steps to reproduce
add a test case https://github.com/GPrabhudas/pulsar-client-go/commit/039bbd0e6fec7452ecb90fd28a4165781631d68c
Test case fails with below warnings