Repository navigation
MOD-16600 Read INFOCLUSTER status from the end, not index 17 (8.8) - #2143
Merged
gabsow merged 1 commit intoAug 9, 2026
Merged
Conversation
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.
|
galcohen-redislabs
approved these changes
Aug 9, 2026
AvivDavid23
approved these changes
Aug 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
status = n[17]→status = n[-1]intests/flow/includes.pyandtests/flow/test_ts_libmr_fail*.py.Why
LibMR #117 changed
timeseries.INFOCLUSTER's per-node reply from a fixed 18 elements to14 + 4*ranges:statusis the last element in both layouts, son[-1]is correct before and after that change, whilen[17]is only correct for a single-range node. With two rangesn[17]reads a slot-range value instead, andverifyClusterInitializedthen spins forever waiting forb'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
verifyClusterInitializedreads each node’s connectionstatusfromn[-1]instead of the fixed indexn[17]when parsingtimeseries.INFOCLUSTERreplies.That matches LibMR’s variable-length per-node layout (
14 + 4×ranges), wherestatusis 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.