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/19 01:52:52 UTC

[GitHub] [pulsar-client-go] mileschao opened a new issue #200: short read when reading frame size

mileschao opened a new issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200
 
 
   Hi.
   While using pulsar client, I got 
   ```
   level=info message "Error reading from connection" error="Short read when reading frame size"
   ```
   Question is:
   what does this log mean?
   what can I do for it, or, How could I deal with it?
   
   Thx for your help.
   @sijie @wolfstudy 
   

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

[GitHub] [pulsar-client-go] sijie commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-611772993
 
 
   @mileschao do you encounter any issue when producing? or is the logging just an info logging?

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

[GitHub] [pulsar-client-go] mileschao commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
mileschao commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-602004127
 
 
   > Thanks @mileschao for the feedback, the problem seems to be an error reading the message format. Can you provide more information?
   
   It is a weird problem.
   I create a simple client (with the latest version on master branch), and publish messages continually to the pulsar server for a long time.
   sometimes, the `Short read when reading frame size` error level log will appear.
   
   I think it is hard to reproduce.
   
   My real question is:
   Is there any way to deal with it?
   cause it just break the for loop and log it in the code.
   and I can not find any way to deal with this error, for example, reconnect, or recreate.
   Thx for your time. :-)
   

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

[GitHub] [pulsar-client-go] zzzming edited a comment on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
zzzming edited a comment on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-601920802
 
 
   similar to this one https://github.com/apache/pulsar-client-go/issues/145 ? It's supposed to be fixed. Which commit are the client on @mileschao

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

[GitHub] [pulsar-client-go] mileschao commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
mileschao commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-614704664
 
 
   > @mileschao thank you for your reply. Does it impact your application? Or just an error message?
   
   producer will stop send message to pulsar cluster.
   and the `for loop` break.
   [readSingleCommand](https://github.com/apache/pulsar-client-go/blob/86c3e808d0e6521757a54a6908e24d42fc099734/pulsar/internal/connection_reader.go#L43)
   
   ```go
   for {
   		cmd, headersAndPayload, err := r.readSingleCommand()
   		if err != nil {
   			r.cnx.log.WithError(err).Info("Error reading from connection")
   			r.cnx.TriggerClose()
   			break
   		}
   
   		// Process
   		var payloadLen uint32
   		if headersAndPayload != nil {
   			payloadLen = headersAndPayload.ReadableBytes()
   		}
   		r.cnx.log.Debug("Got command! ", cmd, " with payload size: ", payloadLen)
   		r.cnx.receivedCommand(cmd, headersAndPayload)
   	}
   ```

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

[GitHub] [pulsar-client-go] mileschao commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
mileschao commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-613173212
 
 
   > @mileschao do you encounter any issue when producing? or is the logging just an info logging?
   
   @sijie Thx for your attention.
   
   Yes, I can reproduce it frequently. 
   and. the log is: 
   ```
   level=info message "Error reading from connection" error="Short read when reading frame size"
   ```
   The real problem is, there is nothing I can do for this.
   custom handler for this problem is wanted. :-)

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

[GitHub] [pulsar-client-go] sijie commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-613305275
 
 
   @mileschao thank you for your reply. Does it impact your application? Or just an error message?

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

[GitHub] [pulsar-client-go] mileschao commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
mileschao commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-602004575
 
 
   > similar to this one #145 ? It's supposed to be fixed. Which commit are the client on @mileschao
   
   Em. 
    It may be a useful hint, but I can not figure it out.
   
   I've got the same error information, but, no pulsar proxy here.
   
   I just create a simple client, and continually publish  messages to the pulsar broker.
   Thx for your time. :-)

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

[GitHub] [pulsar-client-go] wolfstudy commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
wolfstudy commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-601597108
 
 
   Thanks @mileschao for the feedback, the problem seems to be an error reading the message format.  Can you provide more information?

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

[GitHub] [pulsar-client-go] zzzming commented on issue #200: short read when reading frame size

Posted by GitBox <gi...@apache.org>.
zzzming commented on issue #200: short read when reading frame size
URL: https://github.com/apache/pulsar-client-go/issues/200#issuecomment-601920802
 
 
   similar to this one https://github.com/apache/pulsar-client-go/issues/145 ?

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