RedisDesktopManager icon indicating copy to clipboard operation
RedisDesktopManager copied to clipboard

Stream entry displays do not paginate for streams using explicit IDs

Open DALDEI opened this issue 3 years ago • 1 comments

When using a stream created where the Stream ID's are assigned manually, and sequentually, the Stream listing of entries does not display correctly when you navigate to 'Next page'. The "#" column increments but the same rows are displayed. Result is you can only access up to 1 'page' of these streams and cannot access any more.

2022-11-22 09_00_13-Clipboard 2022-11-22 09_00_37-CDS – console_6  outcome-prod-bs  2

DALDEI avatar Nov 22 '22 14:11 DALDEI

I reproduced this on a 'normal use case'; for streams, where the stream IDs are assigned by redis. Same results. Looking at the Log It is clear why

These log lines are from Click on stream key at left nav Open stream Click the next page button ">" many times On screen it shows going frofm page 1,2,3,..7 The row numbers in the table are incrementing but the data is unchanged logs show that after the first page it is using the same query for every page. XREVRANGE has no state so each will return the same result.

Connection: AWSRedis > [runCommand] ttl {cpay}/s3|cpay.event Connection: AWSRedis > [runCommand] XINFO STREAM {cpay}/s3|cpay.event Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + - COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100 Connection: AWSRedis > [runCommand] XREVRANGE {cpay}/s3|cpay.event + 1636836564530-0 COUNT 100

DALDEI avatar Nov 28 '22 21:11 DALDEI