codelipenghui opened a new issue #14786:
URL: https://github.com/apache/pulsar/issues/14786


   **Describe the bug**
   Follow the documentation to enable transaction 
https://pulsar.apache.org/docs/en/txn-use/
   but if the topic auto-creation was disabled, the transaction feature is not 
able to use.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Deploy a pulsar cluster
   2. init the transaction metadata https://pulsar.apache.org/docs/en/txn-use/
   3. change the broker.conf to disable the topic auto-creation
   4. use pulsar-perf produce -txn to produce transaction messages
   5. See the below error
   
   ```
   05:47:14.444 [pulsar-client-internal-5-1] WARN  
org.apache.pulsar.client.impl.ConnectionHandler - 
[persistent://pulsar/system/transaction_coordinator_assign-partition-1] 
[Transaction meta store handler [1]] Could not get connection to broker: 
Transaction coordinator with id 1 not found! -- Will try again in 0.1 s
   05:47:14.554 [pulsar-timer-6-1] INFO  
org.apache.pulsar.client.impl.ConnectionHandler - 
[persistent://pulsar/system/transaction_coordinator_assign-partition-1] 
[Transaction meta store handler [1]] Reconnecting after connection was closed
   ```
   
   **Expected behavior**
   The transaction should work after the topic auto-creation is disabled.
   
   **Additional context**
   Pulsar version: latest branch-2.9
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to