-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Labels
Description
Next code with ReadOnly freezes sometimes on latest version
// previously readonly e
// Read 100 keys with 'ReadOnly' enabled.
client := redis.NewClusterClient(&redis.ClusterOptions{
Addrs: []string{...},
Password: ...,
ReadOnly: true,
MaintNotificationsConfig: &maintnotifications.Config{
Mode: maintnotifications.ModeDisabled,
},
ContextTimeoutEnabled: true,
})
for i := 0; i != 100; i++ {
// freezes here on first iteration
require.NoError(t, client.Get(ctx, fmt.Sprintf("test:%d", i)).Err())
}v9.16.0 works fine