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 2020/03/02 02:22:33 UTC

[GitHub] [pulsar] futeng commented on issue #5206: TooLongFrameException : Adjusted frame length exceeds 5253120: 369295620 - discarded => Error while producing message with TLS on standalone setup

futeng commented on issue #5206: TooLongFrameException : Adjusted frame length exceeds 5253120: 369295620 - discarded => Error while producing message with TLS on standalone setup
URL: https://github.com/apache/pulsar/issues/5206#issuecomment-593189078
 
 
   I had the same problem, and I solved it. I hope it helps. @iravishah @sijie 
   I configured TLS encryption based on the same [document](https://pulsar.apache.org/docs/en/security-tls-transport/).
   When using `bin/pulsar-client` to generate data, the same exception occurs, and the log looks like this:
   
   ```shell
   [root@offline126 apache-pulsar-2.4.2]# bin/pulsar-client --url pulsar://offline126:6651/  produce   persistent://public/default/test   -n 100   -m "Hello Pulsar"
   09:47:29.955 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x09a73636, L:/192.168.129.126:49002 - R:offline126/192.168.129.126:6651]] Connected to server
   09:47:29.989 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ClientCnx - [offline126/192.168.129.126:6651] Got exception TooLongFrameException : Adjusted frame length exceeds 5253120: 352518404 - discarded
   io.netty.handler.codec.TooLongFrameException: Adjusted frame length exceeds 5253120: 352518404 - discarded
   ...
   ```
   
   I realized it might be a protocol header issue, so I changed the URL from **`pulsar://xxx`** to  **`pulsar+ssl://xxx`**. And it worked.
   
   ```shell
   [root@offline126 apache-pulsar-2.4.2]# bin/pulsar-client --url pulsar+ssl://offline126:6651/  produce   persistent://public/default/test   -n 100   -m "Hello Pulsar"
   10:11:14.695 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x918ed558, L:/192.168.129.126:49218 - R:offline126/192.168.129.126:6651]] Connected to server
   10
   ...
   10:11:15.893 [main] INFO  org.apache.pulsar.client.cli.PulsarClientTool - 100 messages successfully produced
   ```

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