You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xi...@apache.org on 2023/07/31 02:10:42 UTC

[pulsar] branch master updated: [improve][txn]Add log when can't send TcClientConnectRequest to broker. (#20880)

This is an automated email from the ASF dual-hosted git repository.

xiangying pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new ca01447fb4d [improve][txn]Add log when can't send TcClientConnectRequest to broker. (#20880)
ca01447fb4d is described below

commit ca01447fb4df808f8e2da2dc75d44fad0b780032
Author: Xiangying Meng <55...@users.noreply.github.com>
AuthorDate: Mon Jul 31 10:10:35 2023 +0800

    [improve][txn]Add log when can't send TcClientConnectRequest to broker. (#20880)
    
    Main Issue: https://github.com/apache/pulsar/issues/20851
    ### Motivation
    When the Proto version does not allow us to send TcClientConnectRequest to the broker, we should add a log to debug it.
    
    ### Modifications
    
    Add a waining log.
---
 .../java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java
index ebbfca0c3cb..0b5174a0151 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/TransactionMetaStoreHandler.java
@@ -167,6 +167,8 @@ public class TransactionMetaStoreHandler extends HandlerState
                     return null;
                 });
             } else {
+                LOG.warn("Can not connect to the transaction coordinator because the protocol version {} is "
+                                + "lower than 19", cnx.getRemoteEndpointProtocolVersion());
                 registerToConnection(cnx);
                 future.complete(null);
             }