upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

`srandmember` Always returns the same result .... #25

Closed zkeq closed 1 year ago

zkeq commented 2 years ago

I try to use srandmember to get an item in a set.

Why does the srandmember command always return the same value when I use it?

444

Below is my code

carbon

Same code, two different results

KX8MC{L%1GB~ WKL4D%B69F

This is my database address, can you check it out for me?

Region
ap-northeast-1

Endpoint
apn1-destined-giraffe-32369.upstash.io
zkeq commented 2 years ago

I created a new set, but the problem persists.

zkeq commented 2 years ago

Here is my data structure

888

zkeq commented 2 years ago

Redis command is also..

local

11 101010

upstash

12

999

mdogan commented 2 years ago

Thanks for the report. This is an accidental issue caused by a latest change. As a workaround you can use SRANDMEMBER with count=-1 option for the time being. The fix will be deployed soon.

zkeq commented 2 years ago

Thanks for the report. This is an accidental issue caused by a latest change. As a workaround you can use SRANDMEMBER with count=-1 option for the time being. The fix will be deployed soon.

SRANDMEMBER bing_images -1

ok, i'm using it yet ..

geoffrich commented 2 years ago

I'm still seeing this issue. Is there an ETA on a fix?

zkeq commented 2 years ago

Looks like this issue is still not fixed

mdogan commented 1 year ago

The fix was deployed to all regions in July. You can report here if you still observe the issue. Thanks.