Skip to content

Conversation

@sazzad16
Copy link
Contributor

No description provided.

@sazzad16 sazzad16 merged commit 022a9af into redis:master Dec 12, 2021
@sazzad16 sazzad16 deleted the pipe-easy branch December 12, 2021 09:00
@sazzad16 sazzad16 added this to the 4.0.0 milestone Dec 12, 2021
@sazzad16 sazzad16 mentioned this pull request Dec 12, 2021
Comment on lines +29 to +37
@Override
public void close() {
try {
super.close();
} finally {
IOUtils.closeQuietly(closeable);
}
}

Copy link

@dolavb dolavb Feb 22, 2025

Choose a reason for hiding this comment

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

Does this close the cache refresher whenever we close a pipeline? A pipeline does not have the same lifecyle as the connection provider, I do not understand this close here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@dolavb
Looking at the newly introduced constructor they are creating a fresh
new ClusterConnectionProvider(clusterNodes, clientConfig)
and only in this case preserve it for clean up later.

I think the idea is since we create it inside the constructor, we clean it

Copy link

Choose a reason for hiding this comment

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

Thanks, I had misread the initialization of the provider to be the setting of the closable.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants