Skip to content

Conversation

@steverao
Copy link
Contributor

No description provided.

@steverao steverao marked this pull request as ready for review November 10, 2025 08:39
@steverao steverao requested a review from a team as a code owner November 10, 2025 08:39
RedisURI redisUri = LettuceSingletons.CONNECTION_URI.get(connection);

if (redisUri != null) {
COMMAND_CONNECTION_INFO.set(command, redisUri);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it would be better to introduce LettuceRequest class that could contain both the command and the uri.

@Advice.This AbstractRedisAsyncCommands<?, ?> asyncCommands,
@Advice.Argument(0) RedisCommand<?, ?, ?> command) {

StatefulConnection<?, ?> connection = asyncCommands.getConnection();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lettuce also has support for redis clusters. I suspect that this code will not correctly work on clusters. Have you verified how it would behave for clusters? Perhaps we need to add a tests for the RedisClusterClient and verify that we don't fill the server.address incorrectly there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants