Skip to content

Commit 9c5bb79

Browse files
authored
Handle the loopback error (#114)
1 parent 0955d85 commit 9c5bb79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/stream/constants.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var ConnectionClosed = errors.New("Can't send the message, connection closed")
116116
var StreamNotAvailable = errors.New("Stream Not Available")
117117
var UnknownFrame = errors.New("Unknown Frame")
118118
var InternalError = errors.New("Internal Error")
119+
var AuthenticationFailureLoopbackError = errors.New("Authentication Failure Loopback Error")
119120

120121
var LeaderNotReady = errors.New("Leader not Ready yet")
121122

@@ -147,6 +148,8 @@ func lookErrorCode(errorCode uint16) error {
147148
return UnknownFrame
148149
case responseCodeInternalError:
149150
return InternalError
151+
case responseCodeAuthenticationFailureLoopback:
152+
return AuthenticationFailureLoopbackError
150153
default:
151154
{
152155
logs.LogWarn("Error not handled %d", errorCode)

0 commit comments

Comments
 (0)