Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve waitCluster#239

Merged
GuyAv46 merged 4 commits intomasterfrom
guyav-improve_wait_cluster
Nov 17, 2025
Merged

Improve waitCluster#239
GuyAv46 merged 4 commits intomasterfrom
guyav-improve_wait_cluster

Conversation

@GuyAv46
Copy link
Contributor

@GuyAv46 GuyAv46 commented Nov 17, 2025

Improve waitCluster by using both CLUSTER INFO and CLUSTER SLOTS, so we do not just wait for all nodes claiming 'ok', but they also agree on the topology.

Also, expose this function in Env, so cluster envs can use it to wait with no additional implementations. Stand-alone Envs will return immediately.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the cluster readiness checking mechanism by verifying topology consensus rather than just individual node status. The changes replace CLUSTER INFO checks with CLUSTER SLOTS comparisons to ensure all nodes agree on the cluster topology before proceeding.

  • Changed waitCluster to use CLUSTER SLOTS command instead of CLUSTER INFO to verify topology consensus
  • Added waitCluster method to the Env class to expose cluster waiting functionality
  • Fixed trailing whitespace in getInformationAfterDispose

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
RLTest/redis_cluster.py Updated waitCluster logic to compare CLUSTER SLOTS responses across nodes and removed trailing whitespace
RLTest/env.py Added waitCluster method to delegate to cluster environment implementations when applicable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GuyAv46 GuyAv46 requested a review from alonre24 November 17, 2025 08:52
@GuyAv46 GuyAv46 merged commit 78fd6a0 into master Nov 17, 2025
16 checks passed
@GuyAv46 GuyAv46 deleted the guyav-improve_wait_cluster branch November 17, 2025 09:08
kei-nan pushed a commit to kei-nan/RLTest that referenced this pull request Dec 2, 2025
* refactor to use cluster slots to ensure agreement

* expose to Env

* wait for both OK and same topo

* minor improvements
kei-nan pushed a commit to kei-nan/RLTest that referenced this pull request Dec 2, 2025
* refactor to use cluster slots to ensure agreement

* expose to Env

* wait for both OK and same topo

* minor improvements
GuyAv46 added a commit that referenced this pull request Dec 8, 2025
* initial commit

* Add message and depth parameters to all Query assertions (#237)

* add depth and message for Query, and some related fixes

* remove unused import

* CI update (#238)

* split nightly from generic CI

* version bump actions

* update poetry lock

* remove usage of pkg_resources

* bump poetry version

* update toml and poetry lock again

* fix whitespace

* Rename nightly-build job to build in biweekly.yml

* support version on python 3.7

* run CI on older and newer python version

* add old versions back and lock poetry

* fix run

* another attempt

* another attempt

* another attempt

* another attempt

* another attempt

* another attempt

* another attempt

* fix poetry lock

* CI improvement

* improve comment and concurrency group

* add failure notification

* Improve waitCluster (#239)

* refactor to use cluster slots to ensure agreement

* expose to Env

* wait for both OK and same topo

* minor improvements

* print rltest args

* code review comments

* code review comments

* fixes

* small fix

* remove redundant function call

* Apply suggestions from code review

Co-authored-by: GuyAv46 <[email protected]>

---------

Co-authored-by: GuyAv46 <[email protected]>
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