Skip to content

Bug: select and client_set_name state not tracked #4691

@liorsve

Description

@liorsve

Describe the bug

Glide doesn't keep track the state of the client name and the selected db. That means that on disconnection, the state wouldn't be restored.

Expected Behavior

The state should be tracked by the client and restored upon reconnection.

Current Behavior

State not restored

Reproduction Steps

  1. created a new client
  2. called a select command with some db.
  3. cause external disconnection
  4. run CLIENT INFO and see the db connected.

Possible Solution

For now, we should not include these commands on new wrappers, until a fix is implemented. After that, we should implement a fix that would re-send these commands with the last params upon reconnection.

Additional Information/Context

No response

Client version used

All of them

Engine type and version

All of them

OS

All of them

Language

Python

Language Version

All (not related)

Cluster information

No response

Logs

No response

Other information

No response

Metadata

Metadata

Labels

bug 🐞Something isn't working

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions