Skip to content

v9.17.0 ReadOnly cluster freezes #3619

@moredure

Description

@moredure

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions