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
When calling the Close function on a consumer, it should be removed from the subscription in the broker eventually.
Actual behavior
When calling the Close function on a consumer and when the connection is interrupted during the RPC, the consumer ends up in a closed state as the point of view of the client, but is still active in the broker (and active so blocking in failover mode for instance).
Steps to reproduce
Hard to reproduce as it happens when closing a consumer and the connection is lost at the same time. It is however clear in the code:
_, err:=pc.client.rpcClient.RequestOnCnx(pc._getConn(), requestID, pb.BaseCommand_CLOSE_CONSUMER, cmdClose)
iferr!=nil {
pc.log.WithError(err).Warn("Failed to close consumer")
} else {
pc.log.Info("Closed consumer")
}
Here it only logs that closing has failed but it then continues and stops everything else resulting in a consumer in the broker like this:
Expected behavior
When calling the
Close
function on a consumer, it should be removed from the subscription in the broker eventually.Actual behavior
When calling the
Close
function on a consumer and when the connection is interrupted during the RPC, the consumer ends up in a closed state as the point of view of the client, but is still active in the broker (and active so blocking in failover mode for instance).Steps to reproduce
Hard to reproduce as it happens when closing a consumer and the connection is lost at the same time. It is however clear in the code:
Here it only logs that closing has failed but it then continues and stops everything else resulting in a consumer in the broker like this:
System configuration
Pulsar version: v4.0.1
Pulsar client: v0.14.0
The text was updated successfully, but these errors were encountered: