Skip to content

Fix peer version check in CI, use local telemetry - #8016

Merged
timvisee merged 1 commit into
devfrom
fix-ci-resharding-version-check
Jan 30, 2026
Merged

timvisee merged 1 commit into
devfrom
fix-ci-resharding-version-check

Conversation

@timvisee

@timvisee timvisee commented Jan 30, 2026 •

Copy link
Copy Markdown
Member

Follow up of #8002

Attempts the following CI flakiness:

FAILED tests/consensus_tests/test_resharding.py::test_resharding_transfer[up-3] - Exception: HTTP request to http://127.0.0.1:41557/collections/test_collection/cluster failed with status code 500 after 0.48843s with response body:
{'status': {'error': 'Service internal error: Cannot start resharding transfer: not all peers support the required version 1.16.4-dev'}, 'time': 0.4863422}
FAILED tests/consensus_tests/test_resharding.py::test_resharding_transfer[down-3] - Exception: HTTP request to http://127.0.0.1:38753/collections/test_collection/cluster failed with status code 500 after 0.48059s with response body:
{'status': {'error': 'Service internal error: Cannot start resharding transfer: not all peers support the required version 1.16.4-dev'}, 'time': 0.478543845}

Example failure: https://github.com/qdrant/qdrant/actions/runs/21488737648/job/61905153631

Peer versions are exposed in multiple ways. First, each peer reports their own current version. Second, each peer also propagates their version through consensus as 'peer metadata'. Peers reporting their own version always works immediately. Versions in peer metadata take some time to appear because it needs to be propagated through consensus.

Before this PR the tests used cluster level telemetry. It uses local peer versions by querying each node explicitly. It means the version would immediately be visible once all nodes started.

Resharding logic in core validates all peers are running a sufficient version. It uses the consensus based version instead.

And there you have the data race. The test thinks all peers have their version available. But if the versions were yet to be propagated through consensus resharding would fail with the above error.

This fix adjusts the test to query the consensus based versions instead. It uses the local telemetry for this, instead of the consensus level telemetry.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai Bot Jan 30, 2026
@timvisee
timvisee merged commit 36824b9 into dev Jan 30, 2026
15 checks passed
@timvisee
timvisee deleted the fix-ci-resharding-version-check branch January 30, 2026 12:18
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