You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pulsar/internal/connection.go
type connection struct {
logicalAddr *url.URL
physicalAddr *url.URL
}
......
func (c *connection) waitUntilReady() error {
select {
case <-c.readyCh:
return nil
case <-c.closeCh:
// Connection has been closed while waiting for the readiness.
return errors.New("connection error")
}
}
To modify the errors.New statement to provide more detailed information, you can include additional context in the error message.
Expected behavior
When the Pulsar client connection fails, we hope to receive a more detailed and specific error message, such as:
Actual behavior
pulsar go client return a a generic and unclear message when connection failed, like this:
Steps to reproduce
Connecting to an abnormal or non-started Pulsar.
System configuration
Pulsar version: master & latest release
The text was updated successfully, but these errors were encountered: