Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for ioredis cluster #1292

Merged
merged 4 commits into from
Sep 4, 2024
Merged

feat: added support for ioredis cluster #1292

merged 4 commits into from
Sep 4, 2024

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 marked this pull request as ready for review August 28, 2024 12:50
@kirrg001 kirrg001 requested a review from a team as a code owner August 28, 2024 12:50
// node bin/start-test-containers.js --redis-node-0 --redis-node-1 --redis-node-2
// docker exec -it 2aaaac7b9112 redis-cli -p 6379 cluster info
module.exports = async function connect(ioredis, log) {
if (!process.env.AZURE_REDIS_CLUSTER || !process.env.AZURE_REDIS_CLUSTER_PWD) {
Copy link
Contributor

Choose a reason for hiding this comment

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

While running the tests locally, I initially encountered the following issue:

[ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.

The issue seems to have resolved itself after some time. It might be related to the cluster since we use the same cluster for both Redis and ioredis testing. Running tests in parallel could potentially cause conflicts. We should consider alternative solutions, such as using namespaces, to prevent this issue in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: We can create a card for now and do it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@aryamohanan aryamohanan left a comment

Choose a reason for hiding this comment

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

LGTM

@kirrg001 kirrg001 merged commit 0318eac into main Sep 4, 2024
1 check passed
@kirrg001 kirrg001 deleted the ioredis-cluster branch September 4, 2024 19:05
kirrg001 added a commit that referenced this pull request Sep 12, 2024
refs #1327
refs #1292

We thought that this is a bug. The tests were not really clear.
We revert the multi/pipeline handling for now.

Raised https://jsw.ibm.com/browse/INSTA-14540 for further investigation.
kirrg001 added a commit that referenced this pull request Sep 12, 2024
refs #1327
refs #1292

We thought that this is a bug. The tests were not really clear.
We revert the multi/pipeline handling for now.

Raised https://jsw.ibm.com/browse/INSTA-14540 for further investigation.
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.

3 participants