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/06/09 08:09:15 UTC

[GitHub] [pulsar] nicoloboschi opened a new issue, #15996: [bug][java-client] Client creation fails with enableTransactions=true if topic transaction_coordinator_assign has not been created yet

nicoloboschi opened a new issue, #15996:
URL: https://github.com/apache/pulsar/issues/15996

   **Describe the bug**
   Client creation fails with enableTransactions=true if topic transaction_coordinator_assign has not been created yet 
   
   ```
   Caused by: org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException: org.apache.pulsar.client.api.PulsarClientException$BrokerMetadataException: {"errorMsg":"Namespace not found","reqId":3642126209754600375, "remote":"localhost/127.0.0.1:54629", "local":"/127.0.0.1:54823"}
   	at app//org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException.unwrap(TransactionCoordinatorClientException.java:131)
   	at app//org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException.unwrap(TransactionCoordinatorClientException.java:129)
   	at app//org.apache.pulsar.client.impl.transaction.TransactionCoordinatorClientImpl.start(TransactionCoordinatorClientImpl.java:70)
   	at app//org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:204)
   	... 47 more
   ```
   
   I found this while enabling transactions on Pulsar standalone but it could apply also in a real cluster.
   
   **To Reproduce**
   - Start Pulsar standalone with transactions enabled (see [this pull](https://github.com/testcontainers/testcontainers-java/pull/5479) for reference
   - Create a client suddenly after Pulsar is ready (but the topic doesn't exist yet)
    
   
   **Expected behavior**
   The client should work out of the box without throwing exceptions. 
   Perhaps an infinite backoff retry with severe logging could be a good solution.  
   
   **Additional context**
   All the Pulsar versions
   


-- 
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.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on issue #15996: [bug][java-client] Client creation fails with enableTransactions=true if topic transaction_coordinator_assign has not been created yet

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #15996:
URL: https://github.com/apache/pulsar/issues/15996#issuecomment-1179639097

   The issue had no activity for 30 days, mark with Stale label.


-- 
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