Skip to content

MOD-16600 Read INFOCLUSTER status from the end, not index 17 (8.8) - #2143

Merged
gabsow merged 1 commit into
RedisTimeSeries:8.8from
gabsow:tom.gabsow/infocluster-status-8.8
Aug 9, 2026
Merged

gabsow merged 1 commit into
RedisTimeSeries:8.8from
gabsow:tom.gabsow/infocluster-status-8.8

Conversation

@gabsow

@gabsow gabsow commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator

What

status = n[17] → status = n[-1] in tests/flow/includes.py and tests/flow/test_ts_libmr_fail*.py.

Why

LibMR #117 changed timeseries.INFOCLUSTER's per-node reply from a fixed 18 elements to 14 + 4*ranges:

id, ip, port, unixSocket, runid, [minHslot, maxHslot] x N, pendingMessages, status

status is the last element in both layouts, so n[-1] is correct before and after that change, while n[17] is only correct for a single-range node. With two ranges n[17] reads a slot-range value instead, and verifyClusterInitialized then spins forever waiting for b'connected' rather than failing cleanly.

This branch already pins a LibMR containing #117, so the mismatch is live: any node with more than one slot range — or a slotless master, both reachable via the Redis Enterprise extended ASM long-form CLUSTERSET — hangs the harness. #117 fixed its own consumer inside the LibMR test module, but the RedisTimeSeries half was never ported.

Found while auditing what 8.4/8.6 would inherit by bumping to LibMR master (#2141, #2142); the same fix is included there.

Test-only change, no production code touched.


Note

Low Risk
Test-only change to flow harness parsing; no production or runtime module behavior is modified.

Overview
Updates cluster test helpers so verifyClusterInitialized reads each node’s connection status from n[-1] instead of the fixed index n[17] when parsing timeseries.INFOCLUSTER replies.

That matches LibMR’s variable-length per-node layout (14 + 4×ranges), where status is always the final field. The old index only worked for single-range nodes and could make the wait loop spin forever on multi-range or slotless masters.

Reviewed by Cursor Bugbot for commit f997b45. Bugbot is set up for automated code reviews on this repo. Configure here.

LibMR RedisTimeSeries#117 turned timeseries.INFOCLUSTER's per-node reply from a fixed 18
elements into 14 + 4*ranges:

    id, ip, port, unixSocket, runid, [minHslot, maxHslot] x N, pendingMessages, status

status is the last element in both layouts, so n[-1] is correct before and after
that change while n[17] is only correct for a single-range node. With two ranges
n[17] reads a slot-range value instead, and verifyClusterInitialized then spins
forever waiting for b'connected' rather than failing cleanly.

This branch already pins a LibMR containing RedisTimeSeries#117, so the mismatch is live: any
node with more than one slot range -- or a slotless master, both reachable via
the Redis Enterprise extended ASM long-form CLUSTERSET -- hangs the harness.
RedisTimeSeries#117 fixed its own consumer in the LibMR test module but the RedisTimeSeries
half was never ported.
@sonarqubecloud

sonarqubecloud Bot commented Aug 9, 2026

Copy link
Copy Markdown

@gabsow
gabsow merged commit 6a15bdb into RedisTimeSeries:8.8 Aug 9, 2026
14 of 56 checks passed
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